summaryrefslogtreecommitdiff
path: root/llama.el
diff options
context:
space:
mode:
authorJonas Bernoulli <jonas@bernoul.li>2025-03-12 15:28:44 +0100
committerJonas Bernoulli <jonas@bernoul.li>2025-03-12 15:28:44 +0100
commitff77af7c5df678041aebb48497418ff8af0acefc (patch)
treec5e6ffdf9066ec230fc03b13bd137497a6ffa668 /llama.el
parentc8aa915ae84e859e5c4c21029c7fda14a9bc9652 (diff)
Extend cooperation with morlock-mode
When that mode is disabled, then actually stop morlocking.
Diffstat (limited to 'llama.el')
-rw-r--r--llama.el5
1 files changed, 3 insertions, 2 deletions
diff --git a/llama.el b/llama.el
index 1c42bba..7f4bc68 100644
--- a/llama.el
+++ b/llama.el
@@ -464,8 +464,9 @@ expansion, and the looks of this face should hint at that.")
(let ((sym (intern-soft (match-string 1))))
(when (and (or (special-form-p sym)
(macrop sym)
- ;; Same as in advice of `morlock' package.
- (get sym 'morlock-font-lock-keyword))
+ (and (bound-and-true-p morlock-mode)
+ ;; Same as in advice of `morlock' package.
+ (get sym 'morlock-font-lock-keyword)))
(not (get sym 'no-font-lock-keyword))
(static-if (fboundp 'lisp--el-funcall-position-p) ;>= 28.1
(lisp--el-funcall-position-p (match-beginning 0))