I am on AntiX based on Debian.
What I get from my man page is
Code:
Redefine hotkey bindings
Hotkey bindings may be read from external file (keymap-file). Initially, Mignight Commander creates key bindings using keymap defined in the source code. Then,
two files /usr/share/mc/mc.keymap and /etc/mc/mc.keymap are loaded always, sequentially reassigned key bindings defined earlier. User-defined keymap-file is
searched on the following algorithm (to the first one found):
1) command line option -K <keymap> or --keymap=<keymap>
2) Environment variable MC_KEYMAP
3) Parameter keymap in section [Midnight-Commander] of config file.
4) File ~/.config/mc/mc.keymap
Command line option, environment variable and parameter in config file may contain the absolute path to the keymap-file (with the extension .keymap or without it).
Search of keymap-file will occur in (to the first one found):
1) ~/.config/mc
2) /etc/mc/
3) /usr/share/mc/
command I used was
My ~/.config/mc file is empty.
Code:
harry@biker:~
$ cd /etc/mc
harry@biker:/etc/mc
$ ls
edit.indent.rc mc.default.keymap mc.emacs.keymap mc.keymap mc.menu.sr
filehighlight.ini mcedit.menu mc.ext mc.menu sfs.ini
harry@biker:/etc/mc
$ cd /usr/share/mc
harry@biker:/usr/share/mc
$ ls
bin examples help hints mc.charsets mc.lib skins syntax
harry@biker:/usr/share/mc
$
I am rpm distro command dyslexic. So hopefully a rpm distro user can elaborate a little better on what I posted.