diff options
author | Jose Antonio Ortega Ruiz <jao@gnu.org> | 2016-06-12 00:54:54 +0200 |
---|---|---|
committer | Jose Antonio Ortega Ruiz <jao@gnu.org> | 2016-06-12 00:54:54 +0200 |
commit | 8d0f6534babe0978ff8cd7c844b0850005749a49 (patch) | |
tree | 765428bf0d38862444e70cac7fc93b6423f978fb /elisp/geiser-syntax.el | |
parent | f6845c2be79f8287efdc1729e5482f57185010f6 (diff) | |
download | geiser-8d0f6534babe0978ff8cd7c844b0850005749a49.tar.gz geiser-8d0f6534babe0978ff8cd7c844b0850005749a49.tar.bz2 |
Registering *global* font-lock keywords in REPLs at the right time
We were adding only the scheme-specific ones.
Diffstat (limited to 'elisp/geiser-syntax.el')
-rw-r--r-- | elisp/geiser-syntax.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/elisp/geiser-syntax.el b/elisp/geiser-syntax.el index ea972e9..ce64171 100644 --- a/elisp/geiser-syntax.el +++ b/elisp/geiser-syntax.el @@ -134,11 +134,12 @@ implementation-specific entries for font-lock-keywords.") (geiser-impl--define-caller geiser-syntax--case-sensitive case-sensitive () "A flag saying whether keywords are case sensitive.") -(defun geiser-syntax--add-kws () +(defun geiser-syntax--add-kws (&optional global-p) (when (not (and (boundp 'quack-mode) quack-mode)) (let ((kw (geiser-syntax--impl-kws geiser-impl--implementation)) (cs (geiser-syntax--case-sensitive geiser-impl--implementation))) (when kw (font-lock-add-keywords nil kw)) + (when global-p (font-lock-add-keywords nil (geiser-syntax--keywords))) (setq font-lock-keywords-case-fold-search (not cs))))) |