Refactor fringe-helper config

This commit is contained in:
Henrik Lissner 2017-06-09 00:32:49 +02:00
parent 58b77716c9
commit e165450903
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
2 changed files with 31 additions and 29 deletions

View file

@ -160,7 +160,10 @@ mode is detected.")
(advice-add #'all-the-icons-alltheicon :around #'doom*disable-all-the-icons-in-tty))
(def-package! fringe-helper
:commands fringe-helper-define)
:commands (fringe-helper-define fringe-helper-convert)
:init
(unless (fboundp 'define-fringe-bitmap)
(fset 'define-fringe-bitmap (lambda (&rest _)))))
(def-package! hideshow ; built-in
:commands (hs-minor-mode hs-toggle-hiding hs-already-hidden-p)

View file

@ -111,9 +111,8 @@
ov 'display (propertize " [...] " 'face '+doom-folded-face))))))
(when (and (display-graphic-p) (fboundp 'define-fringe-bitmap))
;; NOTE Adjust these bitmaps if you change `doom-ui-fringe-size'
(after! flycheck
;; NOTE Adjust these bitmaps if you change `doom-ui-fringe-size'
(after! flycheck
;; because git-gutter is in the left fringe
(setq flycheck-indication-mode 'right-fringe)
;; A non-descript, left-pointing arrow
@ -126,8 +125,8 @@
"..XX...."
"...X...."))
;; subtle diff indicators in the fringe
(after! git-gutter-fringe
;; subtle diff indicators in the fringe
(after! git-gutter-fringe
;; places the git gutter outside the margins.
(setq-default fringes-outside-margins t)
;; thin fringe bitmaps
@ -139,4 +138,4 @@
"X......."
"XX......"
"XXX....."
"XXXX....")))
"XXXX...."))