diff options
author | Aryadev Chavali <aryadev@aryadevchavali.com> | 2020-08-10 12:34:46 +0100 |
---|---|---|
committer | Aryadev Chavali <aryadev@aryadevchavali.com> | 2020-08-10 12:34:46 +0100 |
commit | 3123d1a362f5b0998d1af50a672c200419d59d5b (patch) | |
tree | b7c8977774e1b10c95ed3374bfad81684cd6efac /Emacs/.config/emacs/config.org | |
parent | 3622f260e4c0adf807fd12fcf7502c0e633b59ad (diff) | |
download | dotfiles-3123d1a362f5b0998d1af50a672c200419d59d5b.tar.gz dotfiles-3123d1a362f5b0998d1af50a672c200419d59d5b.tar.bz2 dotfiles-3123d1a362f5b0998d1af50a672c200419d59d5b.zip |
+a few new things to eldoc
-Better description
-changing position of eldoc box
-make evil-force-normal-state also quit the eldoc-box frame through advice
Diffstat (limited to 'Emacs/.config/emacs/config.org')
-rw-r--r-- | Emacs/.config/emacs/config.org | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/Emacs/.config/emacs/config.org b/Emacs/.config/emacs/config.org index 652ddd8..946b091 100644 --- a/Emacs/.config/emacs/config.org +++ b/Emacs/.config/emacs/config.org @@ -942,12 +942,22 @@ Show parenthesis for Emacs (add-hook 'prog-mode-hook #'show-paren-mode) #+END_SRC ** Eldoc +Eldoc presents documentation to the user upon placing ones cursor upon +any symbol. This is very useful when programming as it: +- presents the arguments of functions while writing calls for them +- presents typing and documentation of variables + #+BEGIN_SRC emacs-lisp (use-package eldoc :hook (prog-mode . eldoc-mode)) (use-package eldoc-box - :hook (eldoc-mode . eldoc-box-hover-mode)) + :hook (eldoc-mode . eldoc-box-hover-mode) + :custom + ((eldoc-box-position-function #'eldoc-box--default-upper-corner-position-function) + (eldoc-box-clear-with-C-g t)) + :config + (advice-add #'evil-force-normal-state :before #'eldoc-box-quit-frame)) #+END_SRC ** Eglot Eglot is a library of packages to communicate with LSP servers for |