4.3.1 Built-in Styles

If you’re lucky, one of VHDL Mode’s built-in styles might be just what you’re looking for. Some of the most common VHDL styles are already built-in. These include:

If you’d like to experiment with these built-in styles you can simply type M-x vhdl-set-style RET in a VHDL Mode buffer.

You will be prompted for one of the above styles (with completion). Enter one of the styles and hit RET. Note however that setting a style in this way does not automatically re-indent your file.

Once you find a built-in style you like, you can make the change permanent by adding a call to your .emacs file. Let’s say for example that you want to use the IEEE style in all your files. You would add this:


(defun my-vhdl-mode-hook ()
  ;; use IEEE style for all VHDL code
  (vhdl-set-style "IEEE")
  ;; other customizations can go here
  )
(add-hook 'vhdl-mode-hook 'my-vhdl-mode-hook)

See Permanent Indentation.