We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d0e5baa commit 28b3e00Copy full SHA for 28b3e00
1 file changed
anaconda-mode.el
@@ -784,14 +784,14 @@ Show ERROR-MESSAGE if result is empty."
784
(defun turn-on-anaconda-eldoc-mode ()
785
"Turn on `anaconda-eldoc-mode'."
786
(add-hook 'eldoc-documentation-functions
787
- 'anaconda-mode-eldoc-function nil 't)
788
- (eldoc-mode +1))
+ #'anaconda-mode-eldoc-function nil 't)
+ (unless (bound-and-true-p eldoc-mode)
789
+ (eldoc-mode +1)))
790
791
(defun turn-off-anaconda-eldoc-mode ()
792
"Turn off `anaconda-eldoc-mode'."
793
(remove-hook 'eldoc-documentation-functions
- 'anaconda-mode-eldoc-function 't)
794
- (eldoc-mode -1))
+ #'anaconda-mode-eldoc-function 't))
795
796
(provide 'anaconda-mode)
797
0 commit comments