Electric VHDL mode:
Major mode for editing VHDL code.
- TEMPLATE INSERTION (electrification) (`SPC'): After typing
a VHDL keyword and entering `SPC', you are prompted for
arguments while a template is generated for that VHDL construct. Typing
`RET' (or `C-g' in yes-no queries) at the first
prompt aborts the current template generation. Typing `M-SPC'
after a keyword inserts a space without calling the template generator.
Automatic calling of the template generators (i.e. electrification) can be
disabled (enabled) by setting the variable `vhdl-electric-mode' to nil
(non-nil) or by typing `C-c C-e' (toggles electrification
Template generators can be called using the VHDL menu, the key bindings, or
by typing the keyword (first word of menu entry not in parenthesis) and
`SPC'. The following abbreviations can also be used:
arch, attr, conc, conf, comp, cons, func, inst, pack, ret, sig, sub, var.
- HEADER INSERTION (`C-c C-t h'): A customized header can be inserted
including the actual file name, user name, and current date as well as
prompted title strings. A custom header can be defined in a separate file
(see custom variable `vhdl-header-file').
- STUTTERING (double strike): Double striking of some keys inserts cumbersome
VHDL syntax elements. Stuttering can be disabled by variable
`vhdl-stutter-mode' and be toggled by typing `C-c C-s'.
" : "
" := "
" => "
" <= "
- WORD COMPLETION (`TAB'): Typing `TAB' after a (not
completed) word looks for a word in the buffer that starts alike and
inserts it. Re-typing `TAB' toggles through alternative word
completions. This also works in the minibuffer (i.e. in template generator
Typing `TAB' after a non-word character indents the line if at the
beginning of a line (i.e. no preceding non-blank characters), and inserts a
tabulator stop otherwise. `M-TAB' always inserts a tabulator
- COMMENTS (`--', `---', `----', `--CR'):
puts a single comment.
draws a horizontal line for separating code segments.
inserts a display comment, i.e. two horizontal lines with a
comment in between.
comments out code on that line. Re-hitting CR comments out
comments out a region if not
commented out, uncomments out a region if already