Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Xmodmap does not work when Emacs is used in the console (accessed with
- Ctrl+Alt+[F1-F6]) rather than X11. It's still reasonably simple to
- change.
- Enter the keymap directory (see bottom of `man loadkeys'), and make a
- copy of your preferred keyboard layout. I use the Dvorak keyboard
- layout on Void Linux, so my commands are:
- $ cd /usr/share/kbd/keymap/i386/dvorak/
- # cp dvorak.map.gz xah-fly.map.gz
- # Emacs xah-fly.map.gz
- N.B. Debian and derivatives users may need to install the console-data
- package:
- # apt-get install console-data
- $ cd /usr/share/keymaps/i386/dvorak/
- # cp dvorak.kmap.gz xah-fly.kmap.gz
- # Emacs xah-fly.kmap.gz
- The Caps_Lock key is usually bound to keycode 58, and Home to 102, but
- you should check these yourself using the `showkey' command.
- Keymaps often already contain a Caps_Lock binding; just query-replace
- `Caps_Lock' with `Home'. The Home key generally needs an extra line to
- change it to Caps_Lock:
- keycode 102 = Caps_Lock
- !N.B. End this file with a blank line.
- Test out your new keymap with the `loadkeys' command:
- # loadkeys xah-fly.map.gz
- On most Linux distributions, load this keymap at boot by editing the
- relevant line in /etc/rc.conf to read:
- KEYMAP=xah-fly
- Debian-based distributions instead require you to add this line to
- /etc/default/keyboard:
- KMAP=/usr/share/keymaps/i386/dvorak/xah-fly.kmap.gz
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement