summaryrefslogtreecommitdiff
path: root/elisp/geiser-mode.el
diff options
context:
space:
mode:
authorJose Antonio Ortega Ruiz <jao@gnu.org>2010-08-31 21:30:46 +0200
committerJose Antonio Ortega Ruiz <jao@gnu.org>2010-08-31 21:30:46 +0200
commitce9edd46388e9b5eb2b5f77a4e04517fa8eef33b (patch)
tree33e2e0017b268fe078ba67d6ec268673ac927eff /elisp/geiser-mode.el
parentbd4e541c13836fbf7cabf1da26b97abff4160a8a (diff)
downloadgeiser-ce9edd46388e9b5eb2b5f77a4e04517fa8eef33b.tar.gz
geiser-ce9edd46388e9b5eb2b5f77a4e04517fa8eef33b.tar.bz2
Correctly deactivating autodoc when leaving geiser-mode
Diffstat (limited to 'elisp/geiser-mode.el')
-rw-r--r--elisp/geiser-mode.el6
1 files changed, 4 insertions, 2 deletions
diff --git a/elisp/geiser-mode.el b/elisp/geiser-mode.el
index 6f02204..dc154bc 100644
--- a/elisp/geiser-mode.el
+++ b/elisp/geiser-mode.el
@@ -206,8 +206,10 @@ interacting with the Geiser REPL is at your disposal.
(setq geiser-autodoc-mode-string "/A")
(setq geiser-smart-tab-mode-string "/T")
(geiser-company--setup (and geiser-mode geiser-mode-company-p))
- (when geiser-mode-autodoc-p (geiser-autodoc-mode geiser-mode))
- (when geiser-mode-smart-tab-p (geiser-smart-tab-mode geiser-mode)))
+ (when geiser-mode-autodoc-p
+ (geiser-autodoc-mode (if geiser-mode 1 -1)))
+ (when geiser-mode-smart-tab-p
+ (geiser-smart-tab-mode (if geiser-mode 1 -1))))
(defun turn-on-geiser-mode ()
"Enable `geiser-mode' (in a Scheme buffer)."