scala(9)
[Home]
[Commands]
[Variables]
[Macro-Dev]
[Glossary]
SYNOPSIS
FILES
hkscala.emf - Scala programming language hook definition
scala.eaf - Scala abbreviation file
scala.etf - Scala template file
EXTENSIONS
DESCRIPTION
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 commands, functions, object,s traits, classes variables, logical, comments, strings and characters of the language to be differentiated and rendered in different colors.
Auto Layout
The command
indent(2) performs automatic layout of the text.
Comments may be formatted using esc o, which reformats the comments according to the current fill paragraph. If a comment commences with /***... then the comment is automatically formatted to a box.
Folding and Information Hiding
Generic folding is enabled within the Scala file. The folds occur about lines with leading characters and an open curly brace at the end of a line and are continued until the next line with an closing curly brace.
collapse-all(3) (un)folds all regions in the file,
collapse-current(3) (un)folds the current region.
Navigation via Item List
The Scala mode offers beside folding as well support for displaying an outline of the functions, objects, classes and traits. These can be explored with easy navigation using the
item-list(3)
Abbreviations
The installation comes with a default abbreviation file for Scala file editing which can be used by writing short abbreviations like "fo" (for), "if", "ei" (else if) or "cl" (class) - 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.
Working Environment
compile(3) may be invoked to rebuild the source, the user is prompted to save any files.
Short Cuts
The short cut keys used within the buffer are:-
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 hyphens (--).
esc q - Format a comment.
esc o - Format a comment.
f2 - (Un)fold the current region.
C-f2 - (Un)fold all regions.
f6 - List items.
esc f6 - Close item list,
NOTES
The hilighting or the addition of new item list matches is typically extended using a file myscala.emf.
SEE ALSO
(c) Copyright JASSPA 2026
Last Modified: 2025/12/21
Generated On: 2026/01/31