9. Editor support

The AADL modes for Emacs and vim provide syntax coloration and automatic indentation features when editing AADL files.

_images/aadl-editors.png

AADL mode for emacs and vim

9.1. Emacs

To load the AADL mode for Emacs, you need to add the following line to your emacs configuration file (usually located in ~/.emacs)

(load "/path/to/this/file.el")

For more details on this mode, please refer to the emacs contextual help.

9.2. vim

The AADL mode for vim is made of two files aadl.vim: one for syntactic coloration, and the other for indentation. The file for indentation must be placed into ~/.vim/indent/ while the one for syntactic coloration must be placed into ~/.vim/syntax/

To load the AADL mode whenever you edit AADL files, create a file named ~/.vim/filetype.vim, in which you write:

augroup filetypedetect
        au BufNewFile,BufRead *.aadl    setf aadl
augroup END

For more details, please read the documentation of vim.