From 3123d1a362f5b0998d1af50a672c200419d59d5b Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Mon, 10 Aug 2020 12:34:46 +0100 Subject: +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 --- Emacs/.config/emacs/config.org | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'Emacs') 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 -- cgit v1.2.3-13-gbd6f