bug#2065: 23.0.60; Add xmodmap-mode
Daniel Clemente <[email protected]>
| Newsgroups | gmane.emacs.bugs,gmane.emacs.pretest.bugs |
|---|---|
| Message-ID | <[email protected]> |
Very simple code which makes editing ~/.Xmodmap (key definition for X) much more comfortable. Therefore it could be included in Emacs.
(define-generic-mode 'xmodmap-mode
'(?!)
'("add" "clear" "keycode" "keysym" "remove" "pointer")
nil
'("[xX]modmap\\(rc\\)?\\'")
nil
"Simple mode for xmodmap files.")
It handles ~/.Xmodmap, /etc/X11/Xmodmap and other not so common variants like .xmodmaprc
The code is also at http://www.emacswiki.org/emacs/XModMapMode
Thanks.