diff options
Diffstat (limited to 'emacs.d/custom/fcuny-flycheck.el')
-rw-r--r-- | emacs.d/custom/fcuny-flycheck.el | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/emacs.d/custom/fcuny-flycheck.el b/emacs.d/custom/fcuny-flycheck.el deleted file mode 100644 index e1805b2..0000000 --- a/emacs.d/custom/fcuny-flycheck.el +++ /dev/null @@ -1,27 +0,0 @@ -(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)) - (flycheck-disabled-checkers '(emacs-lisp-checkdoc)) - :config - (progn - (flycheck-define-checker fcuny/source-check-python - "A syntax checker for python source code in Source, using `check.pex'" - :command ("check.pex" source) - ;;; errors are reported like this: - ;;; E241:ERROR <file name>:<line> <message> - :error-patterns ((error line-start (id (1+ nonl)) ":ERROR" (1+ nonl) ":" line (message) line-end) - (warning line-start (id (1+ nonl)) ":WARNING" (1+ nonl) ":" line (message) line-end)) - :predicate fcuny/check-source-predicate-python-p - :modes (python-mode)) - (add-to-list 'flycheck-checkers 'fcuny/source-check-python))) - -(provide 'fcuny-flycheck) |