Move flycheck ui config to ui/doom

This commit is contained in:
Henrik Lissner 2017-05-16 22:21:21 +02:00
parent 20b7d4a6f9
commit c64526eb40
2 changed files with 11 additions and 10 deletions

View file

@ -7,12 +7,10 @@
(def-package! flycheck
:commands (flycheck-mode flycheck-list-errors flycheck-buffer)
:config
(setq ;; because git-gutter is in the left fringe
flycheck-indication-mode 'right-fringe
;; Emacs feels snappier without checks on idle/change
flycheck-check-syntax-automatically '(save mode-enabled))
;; Emacs feels snappier without checks on idle/change
(setq flycheck-check-syntax-automatically '(save mode-enabled))
(set! :popup " ?\\*Flycheck.+\\*" :size 14 :noselect t :regexp t)
(set! :popup " ?\\*Flycheck" :size 14 :noselect t :regexp t)
(map! :map flycheck-error-list-mode-map
:n "C-n" #'flycheck-error-list-next-error
@ -21,10 +19,6 @@
:n "k" #'flycheck-error-list-previous-error
:n "RET" #'flycheck-error-list-goto-error)
(when (fboundp 'define-fringe-bitmap)
(define-fringe-bitmap 'flycheck-fringe-bitmap-double-arrow
[0 0 0 0 0 4 12 28 60 124 252 124 60 28 12 4 0 0 0 0]))
(after! evil
;; Flycheck buffer on ESC in normal mode.
(defun +syntax-checkers|flycheck-buffer ()