Developers/Emacs dyna-mode

From Dyna
Jump to: navigation, search

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.el in Emacs
  • In the dyna-mode.el buffer, type 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,

  • Type M-x customize-group <RET> dyna <RET>
  • or M-x customize-variable <RET> dyna-indent-width <RET>.
Personal tools
Namespaces

Variants
Actions
Navigation
Tools