Template:Emacs and ctl
From AbInitio
(diff) ←Older revision | Current revision | Newer revision→ (diff)
It is useful to have emacs
use its scheme-mode
for editing ctl files, so that hitting tab indents nicely, and so on. emacs
does this automatically for files ending with ".scm
"; to do it for files ending with ".ctl
" as well, add the following lines to your ~/.emacs
file:
(if (assoc "\\.ctl" auto-mode-alist) nil (add-to-list 'auto-mode-alist '("\\.ctl\\'" . scheme-mode))))
(Incidentally, emacs
scripts are written in "elisp," a language closely related to Scheme.)
If you don't use emacs (or derivatives such as Aquamacs), it would be good to find another editor that supports a Scheme mode. For example, jEdit is a free/open-source cross-platform editor with Scheme-syntax support. Another option is GNU gedit (for GNU/Linux and Unix); in fact, S. Hessam Moosavi Mehr has donated a hilighting mode for Meep/MPB that specially highlights the Meep/MPB keywords.