diff options
-rw-r--r-- | emacs.d/custom/fcuny-flycheck.el | 16 |
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) |