Developers/Emacs dyna-mode
From Dyna
There is an Emacs mode for editing Dyna programs included in the distribution. It provides syntax highlighting and basic indentation. Once loaded, it is invoked automatically for .dyna files. The file is dev_tools/emacs/dyna-mode.el To use it, either put this file in a standard Emacs lisp directory or add its location to the load path from your .emacs file:
(add-to-list 'load-path "<Dyna path>/dev_tools/emacs") (require 'dyna-mode)
If the mode changes and you are running Emacs, you can invoke the updates as follows:
- Open
dyna-mode.elin Emacs - In the
dyna-mode.elbuffer, typeM-x eval-buffer <RET>. - In the Dyna file buffers, type
M-x dyna-mode <RET>.
The indentation width is a customizable variable. To change it,
- Type
M-x customize-group <RET> dyna <RET> - or
M-x customize-variable <RET> dyna-indent-width <RET>.
