summary refs log tree commit diff stats
path: root/emacs
diff options
context:
space:
mode:
Diffstat (limited to 'emacs')
-rw-r--r--emacs/.emacs.d/main.el8
1 files changed, 3 insertions, 5 deletions
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