Emacs: use global eldoc mode
Alan Pearce alan@alanpearce.eu
Wed, 14 Nov 2018 13:05:31 +0100
1 files changed, 3 insertions(+), 5 deletions(-)
jump to
M emacs/.emacs.d/main.el → emacs/.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