Info allows you to override the default key-to-command bindings and variable settings described in this document. On startup, GNU Info looks for a configuration file:
HOME
directory.3
$XDG_CONFIG_HOME/texinfo/infokey
. The default value
of $XDG_CONFIG_HOME
is ~/.config,
so usually the file will be at ~/.config/texinfo/infokey.
$XDG_CONFIG_DIRS
which is
a colon-separated list of directory names, for a file named
texinfo/infokey.
This search order is compatible with the XDG Base Directory Specification although doesn’t follow it in every detail.
To use an alternative configuration file, use the --init-file option (see --init-file).
If an infokey file is found, then Info adopts the key bindings and variable settings contained therein.
Variables may also be set on the command line with the --variable option (see variable-assignment). Variable settings on the command line override settings from the infokey file.
(The --vi-keys option rebinds many keys at once; see --vi-keys.)
Due to the limitations of DOS filesystems,
the MS-DOS version of Info looks for a file _infokey instead. If
the HOME
variable is not defined, Info additionally looks in the
current directory.