awk(9)
[Home]
[Commands]
[Variables]
[Macro-Dev]
[Glossary]
SYNOPSIS
FILES
hkawk.emf - AWK hook definition
awk.etf - AWK Language header template file
awk.eaf - AWK Language abbreviation file
EXTENSIONS
MAGIC STRINGS
#![ \t]*/.*awk
MicroEmacs recognises the magic string on the first line of the file used to locate the executable. The awk files may be extensionless and are still recognised.
DESCRIPTION
The awk file type template provides simple hilighting of AWK files, folding, item listing and abbreviations.
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.
Hilighting
The hilighting features allow keywords, variables,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 AWK file editing which can be used by writing short abbreviations like "if", "el" (else) or "fu" (function) - 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 AWK files. The folds occur about function and BEGIN or END block definitions located on the left-hand margin and their closing brace which is located at the beginning of a line.
collapse-all(3) (un)folds all regions in the file,
collapse-current(3) (un)folds the current region.
Navigation via Item List
The AWK mode offers beside folding as well support for displaying an outline of the functions and the blocks for easy navigation using the
item-list(3) command.
BUGS
SEE ALSO
(c) Copyright JASSPA 2025
Last Modified: 2025/08/28
Generated On: 2025/09/29