After installation, inform-mode will be activated for
any files ending in .inf (and optionally .h) when you
visit them using Emacs. Type C-h m to
view the documentation for the mode. Variables
governing inform-mode can be customized;
type M-x customize and navigate to
Programming / Languages / inform-mode.
Type TAB to indent the current line.
Type C-M-\ to indent the region.
Type M-q to fill strings or comments.
This compresses multiple spaces into single
spaces.
The variable inform-project-file gives
the name of the root file of the project (i.e., the
one that you run Inform on); it is best to set this as
a local variable in each file, for example by making
! -*- inform-project-file:\"game.inf\" -*-
the first line of the file.
Type C-c C-r to build (and load) a Tags
table.
Type C-c C-t to load an existing Tags
table. If it exists, and if the
variable inform-autoload-tags is non-NIL,
the Tags table is loaded on entry to Inform Mode. With
a Tags table loaded, type M-. to find the
declaration of the object, class or function under
point.
Type M-p to go to the previous
object/class declaration. Type M-n to go
to the next one.
Type C-c C-b to build the current
project.
Type C-x ` to go to the next error.
Type C-c C-c to run the current project
in an interpreter, either as a sepaarte process or in
an Emacs terminal buffer.
This is normally enabled by default in recent
Emacsen, but if not put (add-hook
'inform-mode-hook 'turn-on-font-lock) in your
.emacs.
Type C-c C-s to spell check all strings
in the buffer. Type M-$ to check the
single word at point.
inform-maybe-modeinform-mode if so,
or inform-maybe-other if not. The
latter defaults to c-mode. Used for
header files which might be Inform or C
programs.inform-startup-messageinform-maybe-otherinform-maybe-mode if
it guesses that the file is not an Inform program.inform-mode-hookinform-autoload-tagsinform-auto-newlineValues in parentheses are the default indentation style.
inform-indent-property (8)inform-indent-has-with-class (1)inform-indent-level (4)inform-indent-label-offset (-3)inform-indent-cont-statement (4)inform-indent-fixup-space (T)Object, Class,
Nearby, has, private
and with, so that all the object's
properties line up.inform-indent-action-column (40)inform-comments-line-up-p (NIL)inform-strings-line-up-p (NIL)inform-indent-semicolon (T)inform-commandinform-libraries-directoryinform-command-optionsinform-interpreter-commandinform-interpreter-optionsinform-interpreter-command is a
string.inform-interpreter-kill-old-processinform-run-project will
kill any running interpreter process and start a new
one. If not, will switch to the interpreter's buffer
(if necessary - see documentation
for inform-run-project for
details).inform-interpreter-is-graphicalinform-run-project will
switch to the interpreter buffer after running the
interpreter.