(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)