From 284bbe783c54a46fea2dd240c6993f5fecad2640 Mon Sep 17 00:00:00 2001 From: Amin Bandali Date: Sat, 5 May 2018 21:42:51 -0400 Subject: [emacs] add flycheck's missing deps (pkg-info & epl) & configure it --- init.org | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'init.org') diff --git a/init.org b/init.org index 7127c0e..cf0a96c 100644 --- a/init.org +++ b/init.org @@ -931,6 +931,17 @@ TODO: break this giant source block down into individual org sections. (setq undo-tree-mode-lighter "")) #+end_src +* Syntax and spell checking +#+begin_src emacs-lisp +(use-package flycheck + :hook (prog-mode . flycheck-mode) + :config + ;; Use the load-path from running Emacs when checking elisp files + (setq flycheck-emacs-lisp-load-path 'inherit) + + ;; Only flycheck when I actually save the buffer + (setq flycheck-check-syntax-automatically '(mode-enabled save))) +#+end_src * Programming modes ** [[https://github.com/leanprover/lean-mode][Lean]] -- cgit v1.2.3-60-g2f50