fusion(9)
[Home]
[Commands]
[Variables]
[Macro-Dev]
[Glossary]
SYNOPSIS
FILES
hkfusion.emf - Fusion programming language hook definition
fusion.eaf - Fusion programming language abbreviation file
fusion.etf - Fusion programming language 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, variables, logicals, 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 Fusion file. The folds occur about functions and classes definition and their opening brace and a closing curly brace 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 Fusion mode offers beside folding as well support for displaying an outline of the functions, classes and enums of the Fusion file for easy navigation using the
item-list(3)
Abbreviations
The installation comes with a default abbreviation file for Fusion 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 stars (*).
A-C-i - Restyle the current region.
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,
Executing, Formatting and Linting Fusion Code
The Fusion file hook supports the
file-exec(3), the
file-format(3) and the
file-lint(3) macros. The tools, compilers which are currently supported are using the "fut" command line transpiler and the "astyle" source code formatter in C-sharp mode. For executing the transpiled code the python3 interpreter is used per default
NOTES
The hilighting or the addition of new item list matches is typically extended using a file myfusion.emf
SEE ALSO
abbrev-list(3),
collapse-all(3),
collapse-current(3),
compile(3),
expand-abbrev-handle(3),
file-exec(3),
file-format(3),
file-lint(3),
java(9),
item-list(3),
restyle-buffer(3),
restyle-region(3),
time(2m).
Supported File Types
Ref: fusion(9) File: m9typ076.9 Date: 2026/05/18
(c) Copyright JASSPA 2026