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
(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:
- In the
M-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,
M-x customize-group <RET> dyna <RET>
M-x customize-variable <RET> dyna-indent-width <RET>.