Alias list-errors' (new) to flymake-show-buffer-diagnostics' (old)

This commit is contained in:
Gerard Vermeulen 2024-01-21 18:25:03 +01:00
parent 32dc95054c
commit 932c57c9ea

View File

@ -4912,7 +4912,17 @@ Listing [[lst:configure-format-all]]:
Flymake is an universal on-the-fly syntax checker for Emacs. It is a requirement
of [[https://github.com/joaotavora/eglot][eglot]], but you can use it without [[https://github.com/joaotavora/eglot][eglot]] for instance in [[https://git.savannah.gnu.org/cgit/emacs.git/tree/lisp/progmodes/python.el][python-mode]] buffers
that do not visit a file.
that do not visit a file. Listing [[lst:configure-flymake]] aliases =list-errors=
(new) to =flymake-show-buffer-diagnostics= (old).
#+caption[Configure =Flymake=]:
#+caption: Configure =Flymake=
#+name: lst:configure-flymake
#+begin_src emacs-lisp -n
(with-eval-after-load 'flymake
(defalias 'list-errors #'flymake-show-buffer-diagnostics
"Show a list of Flymake diagnostics for current buffer."))
#+end_src
* Programming Modes
:PROPERTIES: