From 787f3e26593e840ee8baa1d4b611d3973e833775 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Wed, 14 Nov 2018 13:05:31 +0100 Subject: Emacs: use global eldoc mode --- emacs/.emacs.d/main.el | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'emacs/.emacs.d/main.el') diff --git a/emacs/.emacs.d/main.el b/emacs/.emacs.d/main.el index 605c748..e01d4aa 100644 --- a/emacs/.emacs.d/main.el +++ b/emacs/.emacs.d/main.el @@ -1158,10 +1158,11 @@ With two prefix arguments, write out the day and month name." ;; 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 @@ With two prefix arguments, write out the day and month name." ;;;;;; 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 @@ With two prefix arguments, write out the day and month name." :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 -- cgit 1.4.1