From 10adc96535dc2eb619d07e38f4d11fbf935115d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20Alvari=C3=B1o?= Date: Tue, 22 Mar 2022 11:15:49 +0100 Subject: [PATCH] Add flycheck configuration --- myconfig.org | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/myconfig.org b/myconfig.org index 684737c..aad8c28 100644 --- a/myconfig.org +++ b/myconfig.org @@ -556,7 +556,7 @@ Quick navigation to words - [[https://github.com/joaotavora/yasnippet][yasnippet]] (there are many tutorials) - [[https://github.com/abo-abo/auto-yasnippet][auto-yasnippet]] (disposable 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 (use-package yasnippet :init @@ -569,7 +569,8 @@ Quick navigation to words #+end_src * 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 (use-package company :init @@ -607,7 +608,7 @@ Quick navigation to words * org-mode ** org-bullets - Nice bullets for org-mode +Nice bullets for org-mode #+begin_src emacs-lisp (use-package org-bullets :config @@ -615,6 +616,19 @@ Quick navigation to words ) #+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 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