~phate/sxhkdrc-mode

bf1edd540c91668c0a7d1827465225b63ac745e1 — Ash 2 years ago 2dfc77b
better regex
1 files changed, 6 insertions(+), 6 deletions(-)

M sxhkdrc-mode.el
M sxhkdrc-mode.el => sxhkdrc-mode.el +6 -6
@@ 1,11 1,11 @@
(setq sxhkdrc-highlights
     '(("^.*#.*$" . font-lock-comment-face)
       ("    .*$" . font-lock-function-name-face)
       ("[a-zA-Z0-9]\\|_\\|@" . font-lock-constant-face)
       ("+\\|;\\|{\\|,\\|}" . font-lock-string-face)))
   '(("^.*#.*$" . font-lock-comment-face)
     ("    .*$" . font-lock-function-name-face)
     ("[a-zA-Z0-9_@]" . font-lock-constant-face)
     ("[+;{,}]" . font-lock-string-face)))

(define-derived-mode sxhkdrc-mode fundamental-mode "sxhkdrc"
     "major mode for syntax highlighting of sxhkdrc."
     (setq font-lock-defaults '(sxhkdrc-highlights)))
   "major mode for syntax highlighting of sxhkrc."
   (setq font-lock-defaults '(sxhkdrc-highlights)))

(add-to-list 'auto-mode-alist '("sxhkdrc" . sxhkdrc-mode))