Add flycheck configuration

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

@ -556,7 +556,7 @@ Quick navigation to words
- [[https://github.com/joaotavora/yasnippet][yasnippet]] (there are many tutorials) - [[https://github.com/joaotavora/yasnippet][yasnippet]] (there are many tutorials)
- [[https://github.com/abo-abo/auto-yasnippet][auto-yasnippet]] (disposable snippets) - [[https://github.com/abo-abo/auto-yasnippet][auto-yasnippet]] (disposable snippets)
- [[https://github.com/AndreaCrotti/yasnippet-snippets][yasnippets-snippets]] - [[https://github.com/AndreaCrotti/yasnippet-snippets][yasnippets-snippets]]
Place your own snippets on =~/.cache/emacs/etc/yasnippet/snippets= Place your own snippets on =~/.cache/emacs/etc/yasnippet/snippets=
#+begin_src emacs-lisp #+begin_src emacs-lisp
(use-package yasnippet (use-package yasnippet
:init :init
@ -569,7 +569,8 @@ Quick navigation to words
#+end_src #+end_src
* 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
@ -607,7 +608,7 @@ Quick navigation to words
* org-mode * org-mode
** org-bullets ** org-bullets
Nice bullets for org-mode Nice bullets for org-mode
#+begin_src emacs-lisp #+begin_src emacs-lisp
(use-package org-bullets (use-package org-bullets
:config :config
@ -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