From c711d7e662ee4c07045cbc71e337402eea952455 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Thu, 25 May 2017 20:13:05 +0200 Subject: [PATCH] Fix void-function define-fringe-bitmap errors --- modules/ui/doom/config.el | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/modules/ui/doom/config.el b/modules/ui/doom/config.el index 69c440802..2122dbb81 100644 --- a/modules/ui/doom/config.el +++ b/modules/ui/doom/config.el @@ -155,13 +155,20 @@ ov 'display (propertize " [...] " 'face '+doom-folded-face)))))) -(when (display-graphic-p) +(when (and (display-graphic-p) (fboundp 'define-fringe-bitmap)) + ;; 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 - (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])) + (fringe-helper-define 'flycheck-fringe-bitmap-double-arrow 'center + "...X...." + "..XX...." + ".XXX...." + "XXXX...." + ".XXX...." + "..XX...." + "...X....")) ;; subtle diff indicators in the fringe (after! git-gutter-fringe