Skip to content

Commit 28b3e00

Browse files
TheJJCeleritasCelery
authored andcommitted
don't turn off eldoc-mode when turning of anaconda-eldoc-mode
1 parent d0e5baa commit 28b3e00

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

anaconda-mode.el

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -784,14 +784,14 @@ Show ERROR-MESSAGE if result is empty."
784784
(defun turn-on-anaconda-eldoc-mode ()
785785
"Turn on `anaconda-eldoc-mode'."
786786
(add-hook 'eldoc-documentation-functions
787-
'anaconda-mode-eldoc-function nil 't)
788-
(eldoc-mode +1))
787+
#'anaconda-mode-eldoc-function nil 't)
788+
(unless (bound-and-true-p eldoc-mode)
789+
(eldoc-mode +1)))
789790

790791
(defun turn-off-anaconda-eldoc-mode ()
791792
"Turn off `anaconda-eldoc-mode'."
792793
(remove-hook 'eldoc-documentation-functions
793-
'anaconda-mode-eldoc-function 't)
794-
(eldoc-mode -1))
794+
#'anaconda-mode-eldoc-function 't))
795795

796796
(provide 'anaconda-mode)
797797

0 commit comments

Comments
 (0)