Emacs
Here are some instructions for using Gsharp with emacs.
Configuring Emacs
- Put $UNIDIR/misc/Gsharp/gsl-mode.el where it will be found by your
emacs loadpath (e.g. the lisp or site-lisp subdirectory under the main
emacs directory)
- Add the following to your .emacs file
(autoload 'gsl-mode "gsl-mode" "GSL mode." t)
(setq auto-mode-alist (cons '("\\.\\(gsl\\|gsa\\|gsw\\)$" . gsl-mode)
auto-mode-alist))
-
If you want to change any of the defaults add them via gsl-mode-hook
e.g.
(setq gsl-mode-hook
( function (lambda ()
(setq gsl-mode-indent 2) ;; default 4
(setq gsl-fontify-p nil) ;; default t
(hilit-highlight-buffer) ;; if you prefer hilit to font-lock
)))
- $UNIDIR/misc/Gsharp/gsl-hilit.el
is only needed if you prefer hilit-mode to font-lock. It contains two
sections of code which you will need to add to hilit19.el
You can change the colours
which will be used by hilit-mode either there, or in your .emacs file
(where you use something like (hilit-translate gsfunc2 'cyan)
|