Add flycheck configuration

main
Sergio Alvariño 3 years ago
parent 192dfc7fab
commit 10adc96535

@ -570,6 +570,7 @@ Quick navigation to words
* company * company
Autocompletion with [[https://company-mode.github.io/][company]] Autocompletion with [[https://company-mode.github.io/][company]]
*Remember*: =company-lsp= is deprecated, don't use it.
#+begin_src emacs-lisp #+begin_src emacs-lisp
(use-package company (use-package company
:init :init
@ -615,6 +616,19 @@ Quick navigation to words
) )
#+end_src #+end_src
* flycheck
You *must* use [[https://www.flycheck.org/en/latest/][flycheck]] if you use LSP. (Flymake + LSP is hell)
Syntax checking for programming languages
#+begin_src emacs-lisp
(use-package flycheck
:config
(global-set-key (kbd "C-c f p") 'flycheck-previous-error)
(global-set-key (kbd "C-c f n") 'flycheck-next-error)
:init
(global-flycheck-mode t)
)
#+end_src
* LSP * LSP
We are using [[https://emacs-lsp.github.io/lsp-mode/][lsp-mode]] but keep an eye on [[https://github.com/joaotavora/eglot][eglot]] as an alternative. We are using [[https://emacs-lsp.github.io/lsp-mode/][lsp-mode]] but keep an eye on [[https://github.com/joaotavora/eglot][eglot]] as an alternative.
**WARNING**: =lsp-company= is no longer supported **WARNING**: =lsp-company= is no longer supported

Loading…
Cancel
Save