SiteMap Search ElispArea HowTo Glossary RecentChanges News Problems Suggestions

FreeBSDConsoleKeys

Difference between revision 3 and current revision

Summary: Rollback to 2008-09-05 00:16 UTC

No diff available.

If you use Emacs in a FreeBSD? console (cons25), you may be disappointed by the default keymap, in which Alt doesn’t act as Meta, among other things. Unfortunately, the Emacs-friendly keymap that comes with FreeBSD? is horribly out-of-date, and doesn’t quite do what I want. So I’ve created my own keymap, essentially a blend of us.emacs.kbd and us.pc-ctrl.kbd, which acts the way I want it to. Don’t forget to disable normal-erase-is-backspace-mode if you decide to use it.

If you’d like to make use of the Windows and Menu keys, you could do something like this:

 ;; Make the left Windows key into a Super modifier
 (define-key function-key-map (kbd "ESC [ J") 'event-apply-super-modifier)
 ;; Make the right Windows key into a Hyper modifier
 (define-key function-key-map (kbd "ESC [ ~") 'event-apply-hyper-modifier)
 ;; Make the menu key actually be a menu key.
 (define-key function-key-map (kbd "ESC [ }") (kbd "<menu>"))