From 2fa7504d3c09a64f94b858c2d2f8a4a1d1758765 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Sat, 21 May 2016 23:08:29 -0400 Subject: [PATCH] elisp: improve special fontification regexps --- modules/module-lisp.el | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/module-lisp.el b/modules/module-lisp.el index 7a6ed5717..2b2b5609e 100644 --- a/modules/module-lisp.el +++ b/modules/module-lisp.el @@ -31,7 +31,7 @@ (font-lock-add-keywords nil `(("(\\(lambda\\)" (1 (doom/show-as ?λ))) - ("(\\(doom\\)\\(-[^) ]+\\)?)" (0 font-lock-keyword-face append)) + ("(\\(\\(doom\\)\\(-[^) ]*\\)?\\)[) ]" (1 font-lock-builtin-face)) ;; Highlight doom macros (macros are fontified in emacs 25+) (,(concat "(\\(def-" @@ -43,9 +43,9 @@ (1 font-lock-keyword-face append)) (,(concat "(\\(" - (regexp-opt '("λ" "in" "map" "after" "shut-up" "add-hook" + (regexp-opt '("λ" "in" "map" "after" "shut-up" "add-hook" "associate" "define-org-link" "ex" - "define-org-section")) + "define-org-section" "set")) "!\\)") (1 font-lock-keyword-face append)) ;; Ert