summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--elisp/geiser-autodoc.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/elisp/geiser-autodoc.el b/elisp/geiser-autodoc.el
index 3cb6204..88b94a1 100644
--- a/elisp/geiser-autodoc.el
+++ b/elisp/geiser-autodoc.el
@@ -216,7 +216,7 @@ displayed in the minibuffer."
(when geiser-autodoc-mode 'geiser-autodoc--eldoc-function))
(set (make-local-variable 'eldoc-minor-mode-string) nil)
(set (make-local-variable 'eldoc-idle-delay) geiser-autodoc-delay)
- (eldoc-mode geiser-autodoc-mode)
+ (eldoc-mode (if geiser-autodoc-mode 1 -1))
(when (interactive-p)
(message "Geiser Autodoc %s"
(if geiser-autodoc-mode "enabled" "disabled"))))