+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
This commit is contained in:
2020-08-10 12:34:46 +01:00
parent 3622f260e4
commit 3123d1a362

View File

@@ -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