summary refs log tree commit diff
path: root/emacs
diff options
context:
space:
mode:
authorFranck Cuny <franck.cuny@gmail.com>2020-05-10 14:19:58 -0700
committerFranck Cuny <franck.cuny@gmail.com>2020-05-10 14:19:58 -0700
commitf60a21f598ed06056b72caee4506d9b4466f8232 (patch)
tree9fbba4a18113d2bd2d6bd80a0206571c791fad07 /emacs
parentemacs: drop ediff (diff)
downloademacs.d-f60a21f598ed06056b72caee4506d9b4466f8232.tar.gz
emacs: flycheck stuff
Diffstat (limited to '')
-rw-r--r--emacs.d/custom/fcuny-flycheck.el16
1 files changed, 9 insertions, 7 deletions
diff --git a/emacs.d/custom/fcuny-flycheck.el b/emacs.d/custom/fcuny-flycheck.el
index 0f6d29d..e1805b2 100644
--- a/emacs.d/custom/fcuny-flycheck.el
+++ b/emacs.d/custom/fcuny-flycheck.el
@@ -1,16 +1,18 @@
-(require 'fcuny-defuns)
+(eval-when-compile
+  (require 'use-package)
+  (require 'fcuny-flycheck-py))
 
 (use-package flycheck
   :ensure t
   :hook (prog-mode . flycheck-mode )
-  :custom ((flycheck-idle-change-delay 2)
-           (flycheck-emacs-lisp-load-path 'inherit)
-           (flycheck-highlighting-mode 'lines)
-           (flycheck-check-syntax-automatically '(mode-enabled save)))
+  :custom
+  (flycheck-idle-change-delay 2)
+  (flycheck-emacs-lisp-load-path 'inherit)
+  (flycheck-highlighting-mode 'lines)
+  (flycheck-check-syntax-automatically '(mode-enabled save))
+  (flycheck-disabled-checkers '(emacs-lisp-checkdoc))
   :config
   (progn
-    (setq-default flycheck-disabled-checkers '(emacs-lisp-checkdoc))
-
     (flycheck-define-checker fcuny/source-check-python
       "A syntax checker for python source code in Source, using `check.pex'"
       :command ("check.pex" source)