summaryrefslogtreecommitdiff
path: root/elisp/geiser-syntax.el
diff options
context:
space:
mode:
authorJose Antonio Ortega Ruiz <jao@gnu.org>2010-12-15 19:18:04 +0100
committerJose Antonio Ortega Ruiz <jao@gnu.org>2010-12-15 19:18:04 +0100
commit7c1723140c19e0332aabaad42b314a154e391da7 (patch)
tree2faa4936b8e57243ed290109c848fb70e9f2302c /elisp/geiser-syntax.el
parent753b2b8d34480ae39ce803b28aecb52d7c5ff99c (diff)
downloadgeiser-7c1723140c19e0332aabaad42b314a154e391da7.tar.gz
geiser-7c1723140c19e0332aabaad42b314a154e391da7.tar.bz2
A quack compatibility bit
If quack-mode is active, we leave additional font locking to it.
Diffstat (limited to 'elisp/geiser-syntax.el')
-rw-r--r--elisp/geiser-syntax.el5
1 files changed, 3 insertions, 2 deletions
diff --git a/elisp/geiser-syntax.el b/elisp/geiser-syntax.el
index 8662e37..662f9cf 100644
--- a/elisp/geiser-syntax.el
+++ b/elisp/geiser-syntax.el
@@ -97,8 +97,9 @@
implementation-specific entries for font-lock-keywords.")
(defun geiser-syntax--add-kws ()
- (let ((kw (geiser-syntax--impl-kws geiser-impl--implementation)))
- (when kw (font-lock-add-keywords nil kw))))
+ (when (not (and (boundp 'quack-mode) quack-mode))
+ (let ((kw (geiser-syntax--impl-kws geiser-impl--implementation)))
+ (when kw (font-lock-add-keywords nil kw)))))
;;; A simple scheme reader