diff options
author | Franck Cuny <franck.cuny@gmail.com> | 2017-01-27 15:42:14 -0800 |
---|---|---|
committer | Franck Cuny <franck.cuny@gmail.com> | 2017-01-27 15:42:14 -0800 |
commit | 180eb08c025f6a0890224534939e06c0ae534cca (patch) | |
tree | 782f18634ce5d4300b538851c2c3063b92349ef4 | |
parent | [Emacs] Improve support for Golang. (diff) | |
download | emacs.d-180eb08c025f6a0890224534939e06c0ae534cca.tar.gz |
[Emacs] Remove custom checker for Python style.
The checker lives in it's own repository: https://github.com/franckcuny/flycheck-twitter-python-style
-rw-r--r-- | emacs.d/init.el | 24 |
1 files changed, 7 insertions, 17 deletions
diff --git a/emacs.d/init.el b/emacs.d/init.el index 0408dd6..13ed7e0 100644 --- a/emacs.d/init.el +++ b/emacs.d/init.el @@ -173,26 +173,16 @@ :init (flycheck-pos-tip-mode)) + (use-package flycheck-twitter-python-style + :load-path (lambda () (expand-file-name "~/src/flycheck-twitter-python-style.el/"))) + (add-hook 'prog-mode-hook 'flycheck-mode) + + (flycheck-twitter-python-style-setup) + (setq-default flycheck-disabled-checkers '(emacs-lisp-checkdoc)) (setq flycheck-highlighting-mode 'lines) - (setq flycheck-check-syntax-automatically '(mode-enabled save)) - - (defun check-source-predicate () - (and (executable-find "check.pex") - (buffer-file-name) - (string-match "src/source/.*\.py$" (buffer-file-name)))) - - ;;; errors are reported like this: - ;;; E241:ERROR <file name>:<line> <message> - (flycheck-define-checker source-check - "A syntax checker for python source code in Source, using `check.pex'" - :command ("check.pex" source) - :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 check-source-predicate - :modes (python-mode)) - (add-to-list 'flycheck-checkers 'source-check))) + (setq flycheck-check-syntax-automatically '(mode-enabled save)))) (use-package flyspell ;; check the spelling |