Define DYNKEY in config.h and add lines:
MAPPING=<key> <function>
to your configuration file. The right part is not especially
clever--you'll have to type the standard nethack key for that
function. Think of it as mildly inconvenient function nomenclature..
If you had a German keyboard, you'd want:
MAP=z y
MAP=y z
MAP=Z Y
MAP=Y Z
MAP=C-z C-y
MAP=C-y C-z
MAP=M-z M-y
MAP=M-y M-z
If abbreviating MAPPING to MAP does not satisfy your laziness: the
above can also be written as:
SWAP=z y
SWAP=Z Y
SWAP=C-z C-y
SWAP=M-z M-y
(Of course, instead of remapping these keys the patch may just as well
crash your game as it hasn't been tested well.)
http://home.in.tum.de/~traykovs/nethack/dynkey-343.diff
--
Stanislav Traykov http://home.cs.tum.edu/traykovs/