Add flymake popups, customise eldoc display to stop resizing echo area

This commit is contained in:
Evie Litherland-Smith 2023-12-02 08:38:42 +00:00
parent c864ecbdef
commit 2376ef8016
3 changed files with 33 additions and 0 deletions

View file

@ -30,6 +30,7 @@
consult-yasnippet consult-yasnippet
# ide-packages # ide-packages
flymake-popon
treesit-grammars.with-all-grammars treesit-grammars.with-all-grammars
treesit-auto treesit-auto
apheleia apheleia

View file

@ -451,6 +451,13 @@
:custom (direnv-always-show-summary nil) :custom (direnv-always-show-summary nil)
:config (direnv-mode +1)) :config (direnv-mode +1))
(use-package eldoc
:ensure t
:custom
(eldoc-echo-area-display-truncation-message nil)
(eldoc-echo-area-prefer-doc-buffer t)
(eldoc-echo-area-use-multiline-p nil))
(use-package eglot (use-package eglot
:ensure t :ensure t
:bind (("C-c c e" . eglot) :bind (("C-c c e" . eglot)
@ -473,6 +480,12 @@
:bind (("C-c C-." . flymake-goto-next-error) :bind (("C-c C-." . flymake-goto-next-error)
("C-c C-," . flymake-goto-prev-error))) ("C-c C-," . flymake-goto-prev-error)))
(use-package flymake-popon
:ensure t
:after flymake
:config
(global-flymake-popon-mode +1))
(setq project-switch-use-entire-map t (setq project-switch-use-entire-map t
project-switch-commands 'project-dired) project-switch-commands 'project-dired)

View file

@ -540,6 +540,16 @@ For reference information, see [[https://orgmode.com][Org-mode website]]
:config (direnv-mode +1)) :config (direnv-mode +1))
#+END_SRC #+END_SRC
** Eldoc
#+begin_src emacs-lisp :tangle yes
(use-package eldoc
:ensure t
:custom
(eldoc-echo-area-display-truncation-message nil)
(eldoc-echo-area-prefer-doc-buffer t)
(eldoc-echo-area-use-multiline-p nil))
#+end_src
** Eglot LSP ** Eglot LSP
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(use-package eglot (use-package eglot
@ -567,6 +577,15 @@ For reference information, see [[https://orgmode.com][Org-mode website]]
:bind (("C-c C-." . flymake-goto-next-error) :bind (("C-c C-." . flymake-goto-next-error)
("C-c C-," . flymake-goto-prev-error))) ("C-c C-," . flymake-goto-prev-error)))
#+end_src #+end_src
*** Diagnostics in popup
#+begin_src emacs-lisp :tangle yes
(use-package flymake-popon
:ensure t
:after flymake
:config
(global-flymake-popon-mode +1))
#+end_src
** Project ** Project
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(setq project-switch-use-entire-map t (setq project-switch-use-entire-map t