EMACS: added xmodmap-mode
This commit is contained in:
parent
976f3b8994
commit
55465d74ee
2 changed files with 13 additions and 0 deletions
9
.emacs.d/elisp/xmodmap-mode.el
Normal file
9
.emacs.d/elisp/xmodmap-mode.el
Normal file
|
@ -0,0 +1,9 @@
|
|||
(define-generic-mode 'xmodmap-mode
|
||||
'(?!)
|
||||
'("add" "clear" "keycode" "keysym" "pointer" "remove")
|
||||
nil
|
||||
'("[xX]modmap\\(rc\\)?\\'")
|
||||
nil
|
||||
"Simple mode for xmodmap files.")
|
||||
|
||||
(provide 'xmodmap-mode)
|
|
@ -100,6 +100,10 @@
|
|||
(add-hook 'sgml-mode-hook 'zencoding-mode) ; Auto-start on any markup
|
||||
; modes
|
||||
|
||||
;;; Xmodmap mode
|
||||
(autoload 'xmodmap-mode "xmodmap-mode" "Major mode for xmodmap" t)
|
||||
(add-to-list 'auto-mode-alist '("\\.[xX]modmap\\(rc\\)?$" . xmodmap-mode))
|
||||
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
;; REQUIRES ;;
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
|
|
Loading…
Reference in a new issue