From f60a21f598ed06056b72caee4506d9b4466f8232 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Sun, 10 May 2020 14:19:58 -0700 Subject: emacs: flycheck stuff --- emacs.d/custom/fcuny-flycheck.el | 16 +++++++++------- 1 file 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) -- cgit 1.4.1