summary refs log tree commit diff
path: root/emacs
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2022-02-03 19:29:57 -0800
committerFranck Cuny <franck@fcuny.net>2022-02-03 19:29:57 -0800
commit3fc72061361c66103884bd14c0e3cf930e3ae47a (patch)
treecb233a185a6fcfe2acf028b516d9e2daa21729d3 /emacs
parentorg: journal's tree-type is day (diff)
downloademacs.d-3fc72061361c66103884bd14c0e3cf930e3ae47a.tar.gz
twitter: remove more unused code
Diffstat (limited to 'emacs')
-rw-r--r--emacs/custom/fcuny-flycheck.el17
-rw-r--r--emacs/lisp/fcuny-flycheck-py.el6
2 files changed, 2 insertions, 21 deletions
diff --git a/emacs/custom/fcuny-flycheck.el b/emacs/custom/fcuny-flycheck.el
index e1805b2..6f8ff65 100644
--- a/emacs/custom/fcuny-flycheck.el
+++ b/emacs/custom/fcuny-flycheck.el
@@ -1,6 +1,5 @@
 (eval-when-compile
-  (require 'use-package)
-  (require 'fcuny-flycheck-py))
+  (require 'use-package))
 
 (use-package flycheck
   :ensure t
@@ -10,18 +9,6 @@
   (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)))
+  (flycheck-disabled-checkers '(emacs-lisp-checkdoc)))
 
 (provide 'fcuny-flycheck)
diff --git a/emacs/lisp/fcuny-flycheck-py.el b/emacs/lisp/fcuny-flycheck-py.el
deleted file mode 100644
index 68a5143..0000000
--- a/emacs/lisp/fcuny-flycheck-py.el
+++ /dev/null
@@ -1,6 +0,0 @@
-(defun fcuny/check-source-predicate-python-p ()
-  (and (executable-find "check.pex")
-       (buffer-file-name)
-       (string-match "src/source/.*\.py$" (buffer-file-name))))
-
-(provide 'fcuny-flycheck-py)