Flycheck: better evil-mode + fringe integration

This commit is contained in:
Henrik Lissner 2015-11-12 02:07:48 -05:00
parent a13ca18462
commit 533a307043
2 changed files with 7 additions and 3 deletions

View file

@ -4,14 +4,17 @@
(use-package flycheck
:commands (flycheck-mode flycheck-list-errors flycheck-buffer)
:init
(setq flycheck-indication-mode nil
(setq flycheck-indication-mode 'right-fringe
;; Removed checks on idle/change for snappiness
flycheck-check-syntax-automatically '(save mode-enabled idle-change)
flycheck-check-syntax-automatically '(save mode-enabled)
flycheck-disabled-checkers '(emacs-lisp-checkdoc make))
:config
(bind! :map flycheck-error-list-mode-map
:n [escape] 'kill-this-buffer
:n "q" 'kill-this-buffer)
:n "q" 'kill-this-buffer
:n "C-n" 'flycheck-error-list-next-error
:n "C-p" 'flycheck-error-list-previous-error
:n "RET" 'flycheck-error-list-goto-error)
(evil-initial-state 'flycheck-error-list-mode 'emacs)