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 (use-package flycheck
:commands (flycheck-mode flycheck-list-errors flycheck-buffer) :commands (flycheck-mode flycheck-list-errors flycheck-buffer)
:init :init
(setq flycheck-indication-mode nil (setq flycheck-indication-mode 'right-fringe
;; Removed checks on idle/change for snappiness ;; 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)) flycheck-disabled-checkers '(emacs-lisp-checkdoc make))
:config :config
(bind! :map flycheck-error-list-mode-map (bind! :map flycheck-error-list-mode-map
:n [escape] 'kill-this-buffer :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) (evil-initial-state 'flycheck-error-list-mode 'emacs)

View file

@ -142,6 +142,7 @@
("*helm-ag-edit*" :position bottom :height 20 :stick t) ("*helm-ag-edit*" :position bottom :height 20 :stick t)
(help-mode :position bottom :height 15 :stick t) (help-mode :position bottom :height 15 :stick t)
("*Backtrace*" :position bottom :height 15 :stick t) ("*Backtrace*" :position bottom :height 15 :stick t)
("*Flycheck errors*" :position bottom :height 15 :stick t)
("^\\*[Hh]elm.*?\\*\\'" :regexp t :position bottom :height 15) ("^\\*[Hh]elm.*?\\*\\'" :regexp t :position bottom :height 15)
("^\\*Org-Babel.*\\*$" :regexp t :position bottom :height 15) ("^\\*Org-Babel.*\\*$" :regexp t :position bottom :height 15)
("^\\*Org .*\\*$" :regexp t :position bottom :height 15) ("^\\*Org .*\\*$" :regexp t :position bottom :height 15)