Move flycheck ui config to ui/doom
This commit is contained in:
parent
20b7d4a6f9
commit
c64526eb40
2 changed files with 11 additions and 10 deletions
|
@ -7,12 +7,10 @@
|
||||||
(def-package! flycheck
|
(def-package! flycheck
|
||||||
:commands (flycheck-mode flycheck-list-errors flycheck-buffer)
|
:commands (flycheck-mode flycheck-list-errors flycheck-buffer)
|
||||||
:config
|
:config
|
||||||
(setq ;; because git-gutter is in the left fringe
|
;; Emacs feels snappier without checks on idle/change
|
||||||
flycheck-indication-mode 'right-fringe
|
(setq flycheck-check-syntax-automatically '(save mode-enabled))
|
||||||
;; Emacs feels snappier without checks on idle/change
|
|
||||||
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
|
(map! :map flycheck-error-list-mode-map
|
||||||
:n "C-n" #'flycheck-error-list-next-error
|
:n "C-n" #'flycheck-error-list-next-error
|
||||||
|
@ -21,10 +19,6 @@
|
||||||
:n "k" #'flycheck-error-list-previous-error
|
:n "k" #'flycheck-error-list-previous-error
|
||||||
:n "RET" #'flycheck-error-list-goto-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
|
(after! evil
|
||||||
;; Flycheck buffer on ESC in normal mode.
|
;; Flycheck buffer on ESC in normal mode.
|
||||||
(defun +syntax-checkers|flycheck-buffer ()
|
(defun +syntax-checkers|flycheck-buffer ()
|
||||||
|
|
|
@ -155,8 +155,15 @@
|
||||||
ov 'display (propertize " [...] " 'face '+doom-folded-face))))))
|
ov 'display (propertize " [...] " 'face '+doom-folded-face))))))
|
||||||
|
|
||||||
|
|
||||||
;; subtle diff indicators in the fringe
|
|
||||||
(when (display-graphic-p)
|
(when (display-graphic-p)
|
||||||
|
(after! flycheck
|
||||||
|
;; because git-gutter is in the left fringe
|
||||||
|
(setq flycheck-indication-mode 'right-fringe)
|
||||||
|
|
||||||
|
(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]))
|
||||||
|
|
||||||
|
;; subtle diff indicators in the fringe
|
||||||
(after! git-gutter-fringe
|
(after! git-gutter-fringe
|
||||||
;; places the git gutter outside the margins.
|
;; places the git gutter outside the margins.
|
||||||
(setq-default fringes-outside-margins t)
|
(setq-default fringes-outside-margins t)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue