ada(9)
[Home]
[Commands]
[Variables]
[Macro-Dev]
[Glossary]
SYNOPSIS
FILES
hkada.emf - Ada programming language file hook definition
ada.eaf - Ada programming language abbreviation file
ada.etf - Ada programming language template file
EXTENSIONS
.ada, .adb, .ads - Ada programming language
DESCRIPTION
The ada file type template provides simple highlighting of Ada files.
General Editing
On creating a new file, a new header is automatically included into the file.
time(2m) is by default enabled, allowing the modification time-stamp to be maintained in the header.
Highlighting
The highlighting features allow commands, variables, logical, preprocessor definitions, comments, strings and characters of the language to be differentiated and rendered in different colors.
Abbreviations
The installation comes with a default abbreviation file for Ada file editing which can be used by writing short abbreviations like "fo", if", "el" or "fu" - and then pressing the key-binding for the
expand-abbrev-handle(3) command. The list of abbreviations can be used interactively in the GUI version of MicroEmacs using the
abbrev-list(3) command.
Folding and Information Hiding
Generic folding is enabled within the Ada file. The folds occur about functions, procedures or records as long as these declarations are on one line and and at a line starting with the end; keyword.
collapse-all(3) (un)folds all regions in the file,
collapse-current(3) (un)folds the current region.
Navigation via Item List
The Ada mode offers beside folding as well support for displaying an outline of the functions, procedures or records for easy navigation using the
item-list(3) command.
Short Cuts
The short cut keys used within the buffer are:-
esc h - Key binding help information.
C-c C-c - Comment out the current line.
C-c C-d - Uncomment the current line.
C-c C-e - Comment to the end of the line with hash (#).
C-c C-o - Format a comment
f2 - (Un)fold the current region.
C-f2 - (Un)fold all regions.
f6 - List items.
esc f6 - Close item list,
BUGS
SEE ALSO
(c) Copyright JASSPA 2025
Last Modified: 2025/08/28
Generated On: 2025/09/29