all repos — archive/dotfiles @ 787f3e26593e840ee8baa1d4b611d3973e833775

Superseded by nixfiles

Emacs: use global eldoc mode
Alan Pearce alan@alanpearce.eu
Wed, 14 Nov 2018 13:05:31 +0100
commit

787f3e26593e840ee8baa1d4b611d3973e833775

parent

380b4c3f6d2ea9371e3b699b7bf47d1cd952a9cf

1 files changed, 3 insertions(+), 5 deletions(-)

jump to
M emacs/.emacs.d/main.elemacs/.emacs.d/main.el
@@ -1158,10 +1158,11 @@ ;; Documentation in the echo-area (where the minibuffer is displayed) is ;; rather useful.
 
 (use-package eldoc
-  :commands (eldoc-mode)
+  :commands (eldoc-mode global-eldoc-mode)
   :diminish eldoc-mode
   :config (progn
             (setq eldoc-idle-delay 0.1)
+            (global-eldoc-mode +1)
             (eldoc-add-command 'paredit-backward-delete 'paredit-close-round)))
 ;;;; Mail
 
@@ -1726,8 +1727,6 @@ (add-hook 'lisp-mode-common-hook #'turn-on-redshank-mode))) 
 ;;;;;; Emacs Lisp
 
-(add-hook 'emacs-lisp-mode-hook #'eldoc-mode)
-
 ;; Go-to function for elisp.  Except it works through the entire Emacs ecosystem.
 
 (use-package elisp-slime-nav
@@ -1804,8 +1803,7 @@ (use-package cider   :defer t
   :config (progn
             (setq nrepl-hide-special-buffers t)
-            (unbind-key "C-c C-f" cider-mode-map)
-            (add-hook 'cider-mode-hook #'eldoc-mode)))
+            (unbind-key "C-c C-f" cider-mode-map)))
 
 ;;;;; Auto-compile