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;
M-x customize and navigate to
Programming / Languages / inform-mode.
TAB to indent the current line.
C-M-\ to indent the region.
M-q to fill strings or comments.
This compresses multiple spaces into single
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.
C-c C-r to build (and load) a Tags
C-c C-t to load an existing Tags
table. If it exists, and if the
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
M-p to go to the previous
object/class declaration. Type
M-n to go
to the next one.
C-c C-b to build the current
C-x ` to go to the next error.
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
'inform-mode-hook 'turn-on-font-lock) in your
C-c C-s to spell check all strings
in the buffer. Type
M-$ to check the
single word at point.
inform-modeif so, or
inform-maybe-otherif not. The latter defaults to
c-mode. Used for header files which might be Inform or C programs.
inform-maybe-modeif it guesses that the file is not an Inform program.
Values in parentheses are the default indentation style.
with, so that all the object's properties line up.
inform-interpreter-commandis a string.
inform-run-projectwill 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-projectwill switch to the interpreter buffer after running the interpreter.