|
|
@ -497,27 +497,32 @@ Autocomplete packages (includes code completion and snippets). |
|
|
|
On the fly syntax checking. |
|
|
|
On the fly syntax checking. |
|
|
|
|
|
|
|
|
|
|
|
#+BEGIN_SRC emacs-lisp |
|
|
|
#+BEGIN_SRC emacs-lisp |
|
|
|
(use-package flycheck |
|
|
|
(use-package flycheck |
|
|
|
:defer t |
|
|
|
:defer t |
|
|
|
:hook |
|
|
|
:hook |
|
|
|
((c-mode-common |
|
|
|
((c-mode-common |
|
|
|
emacs-lisp-mode |
|
|
|
emacs-lisp-mode |
|
|
|
latex-mode |
|
|
|
latex-mode |
|
|
|
org-mode |
|
|
|
org-mode |
|
|
|
php-mode |
|
|
|
php-mode |
|
|
|
shell-mode |
|
|
|
shell-mode |
|
|
|
shell-script-mode) |
|
|
|
shell-script-mode) |
|
|
|
. flycheck-mode) |
|
|
|
. flycheck-mode) |
|
|
|
:config |
|
|
|
:config |
|
|
|
(setq flycheck-clang-language-standard "c++17") |
|
|
|
(setq flycheck-clang-language-standard "c++17") |
|
|
|
(setq flycheck-gcc-language-standard "c++17")) |
|
|
|
(setq flycheck-gcc-language-standard "c++17")) |
|
|
|
|
|
|
|
|
|
|
|
;; For .el files which are intended to be packages |
|
|
|
;; For .el files which are intended to be packages |
|
|
|
(use-package flycheck-package |
|
|
|
(use-package flycheck-package |
|
|
|
:after flycheck |
|
|
|
:after flycheck |
|
|
|
:config |
|
|
|
:config |
|
|
|
(add-to-list 'flycheck-checkers 'flycheck-emacs-lisp-package) |
|
|
|
(add-to-list 'flycheck-checkers 'flycheck-emacs-lisp-package) |
|
|
|
(flycheck-package-setup)) |
|
|
|
(flycheck-package-setup)) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
(use-package flycheck-clang-tidy |
|
|
|
|
|
|
|
:after flycheck |
|
|
|
|
|
|
|
:hook (flycheck-mode . flycheck-clang-tidy-setup) |
|
|
|
|
|
|
|
:config (setq flycheck-clang-tidy-extra-options "--format-style=file")) |
|
|
|
#+END_SRC |
|
|
|
#+END_SRC |
|
|
|
|
|
|
|
|
|
|
|
**** LSP |
|
|
|
**** LSP |
|
|
|