summary refs log tree commit diff
path: root/emacs.d/inits/50_flycheck.el
diff options
context:
space:
mode:
authorFranck Cuny <franckcuny@gmail.com>2016-02-12 20:58:37 -0800
committerFranck Cuny <franckcuny@gmail.com>2016-02-12 20:58:37 -0800
commit5f2b301a8df5410962519d2b7e9a977b03e75977 (patch)
treeda73920a1109c0820cdf3a3e2902087c95f3b3a7 /emacs.d/inits/50_flycheck.el
parent[emacs] Move some packages to a new config file. (diff)
downloademacs.d-5f2b301a8df5410962519d2b7e9a977b03e75977.tar.gz
[emacs] Split the config into 'core' and 'modes'.
Separate the modules that are 'core' (e.g.: related to editing,
manipulating text, and so on) and the 'modes' (e.g.: related to syntax,
langage support, etc).
Diffstat (limited to 'emacs.d/inits/50_flycheck.el')
-rw-r--r--emacs.d/inits/50_flycheck.el31
1 files changed, 0 insertions, 31 deletions
diff --git a/emacs.d/inits/50_flycheck.el b/emacs.d/inits/50_flycheck.el
deleted file mode 100644
index 3d835e3..0000000
--- a/emacs.d/inits/50_flycheck.el
+++ /dev/null
@@ -1,31 +0,0 @@
-(use-package flycheck
-  :ensure t
-  :defer t
-  :preface (progn
-             (defun check-source-predicate ()
-               (and (executable-find "check.pex")
-                    (buffer-file-name)
-                    (string-match "src/source/.*\.py$" (buffer-file-name)))))
-  :init
-  (progn
-    (add-hook 'prog-mode-hook 'flycheck-mode)
-    (setq-default flycheck-disabled-checkers '(emacs-lisp-checkdoc)))
-  :config
-  (progn
-    (flycheck-define-checker source-check
-      "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 (1+ nonl) ":ERROR" (1+ nonl) ":" line (message) line-end))
-      :predicate check-source-predicate
-      :modes (python-mode))
-    (add-to-list 'flycheck-checkers 'source-check)))
-
-(use-package flycheck-pos-tip
-  :defer t
-  :init
-  (progn
-    (eval-after-load 'feature-flycheck
-      '(setq-default flycheck-display-errors-function #'flycheck-pos-tip-error-messages)))
-  :ensure t)