From: Don Armstrong Date: Sun, 25 Dec 2022 00:05:18 +0000 (-0800) Subject: add flycheck X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=d70a43efdc779ac98a9efbd35e3082a8673e4a79;p=lib.git add flycheck --- diff --git a/emacs_el/configuration/don-configuration.org b/emacs_el/configuration/don-configuration.org index 052323b..6235cc8 100644 --- a/emacs_el/configuration/don-configuration.org +++ b/emacs_el/configuration/don-configuration.org @@ -141,6 +141,36 @@ ) #+END_SRC + +** Flycheck +#+begin_src emacs-lisp :tangle yes +(use-package flycheck + :ensure t + :diminish 🦋 + :if (version<= "24.4" emacs-version) + :commands flycheck-mode + :hook ((prog-mode . flycheck-mode) + ) +) +;; Other pkgs +(use-package flycheck-tip + :ensure t + :commands 'flycheck-tip-cycle + :after flycheck + :bind (:map flycheck-mode-map + ("C-c C-n" . flycheck-tip-cycle))) + +(use-package flycheck-package + :ensure t) + +(use-package flycheck-checkpatch + :ensure t + :config (flycheck-checkpatch-setup) + :config (setq flycheck-checkers (delete 'checkpatch + flycheck-checkers)) + :config (add-to-list 'flycheck-checkers 'checkpatch t)) +#+end_src + ** Flymake #+begin_src emacs-lisp :tangle yes (use-package flymake