summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJose Antonio Ortega Ruiz <jao@gnu.org>2016-06-11 21:11:05 +0200
committerJose Antonio Ortega Ruiz <jao@gnu.org>2016-06-11 21:11:05 +0200
commitf6845c2be79f8287efdc1729e5482f57185010f6 (patch)
tree414879ecbe5848f940bd474f71acbf28468388b1
parent2fc156374fb2e20e2f25ab020589dc032ff4578a (diff)
downloadgeiser-f6845c2be79f8287efdc1729e5482f57185010f6.tar.gz
geiser-f6845c2be79f8287efdc1729e5482f57185010f6.tar.bz2
Registering font-lock keywords in REPLs at the right time
We were doing it before the buffer's implementation, and the implementation-specific keywords were not found. Should fix github's issue #159.
-rw-r--r--elisp/geiser-repl.el6
1 files changed, 3 insertions, 3 deletions
diff --git a/elisp/geiser-repl.el b/elisp/geiser-repl.el
index f7336f8..f0ba31b 100644
--- a/elisp/geiser-repl.el
+++ b/elisp/geiser-repl.el
@@ -1,6 +1,6 @@
;;; geiser-repl.el --- Geiser's REPL
-;; Copyright (C) 2009, 2010, 2011, 2012, 2013, 2015 Jose Antonio Ortega Ruiz
+;; Copyright (C) 2009, 2010, 2011, 2012, 2013, 2015, 2016 Jose Antonio Ortega Ruiz
;; This program is free software; you can redistribute it and/or
;; modify it under the terms of the Modified BSD License. You should
@@ -280,7 +280,8 @@ module command as a string")
(or old (generate-new-buffer (geiser-repl--buffer-name impl))))
(unless old
(geiser-repl-mode)
- (geiser-impl--set-buffer-implementation impl)))))
+ (geiser-impl--set-buffer-implementation impl)
+ (geiser-syntax--add-kws)))))
(defun geiser-repl--read-impl (prompt &optional active)
(geiser-impl--read-impl prompt (and active (geiser-repl--active-impls))))
@@ -688,7 +689,6 @@ buffer."
(geiser-completion--setup t)
(setq geiser-smart-tab-mode-string "")
(geiser-smart-tab-mode t)
- (geiser-syntax--add-kws)
;; enabling compilation-shell-minor-mode without the annoying highlighter
(compilation-setup t))