summary refs log tree commit diff
path: root/emacs.d/config/fcuny-ibuffer.el
blob: b949c8756e3d2102e4c1f2305d0680a4675090b1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
(eval-when-compile
  (require 'use-package))

(use-package ibuffer
  :ensure t
  :bind ("C-x C-b" . ibuffer))

(use-package flycheck
  :ensure t
  :config
  (progn
    (add-hook 'prog-mode-hook 'flycheck-mode)
    (setq flycheck-highlighting-mode 'lines)
    (setq flycheck-check-syntax-automatically '(mode-enabled save))
    (setq flycheck-checkers (delq 'emacs-lisp-checkdoc flycheck-checkers))
    (if (fc/check-work-machine-p)
      (flycheck-define-checker fc/twitter-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 fc/check-source-p
        :modes (python-mode))
      (add-to-list 'flycheck-checkers 'fc/twitter-source-check))))

(provide 'fcuny-ibuffer)