diff options
author | Alan Pearce | 2018-11-14 13:05:31 +0100 |
---|---|---|
committer | Alan Pearce | 2018-11-14 13:05:31 +0100 |
commit | 787f3e26593e840ee8baa1d4b611d3973e833775 (patch) | |
tree | b4fc666cdefeeb0d2b6511fccde40fc7c8f58dae /emacs | |
parent | 380b4c3f6d2ea9371e3b699b7bf47d1cd952a9cf (diff) | |
download | nixfiles-787f3e26593e840ee8baa1d4b611d3973e833775.tar.lz nixfiles-787f3e26593e840ee8baa1d4b611d3973e833775.tar.zst nixfiles-787f3e26593e840ee8baa1d4b611d3973e833775.zip |
Emacs: use global eldoc mode
Diffstat (limited to 'emacs')
-rw-r--r-- | emacs/.emacs.d/main.el | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/emacs/.emacs.d/main.el b/emacs/.emacs.d/main.el index 605c7488..e01d4aa6 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 |