Fix missing 'define-fringe-bitmap' function errors

If Emacs wasn't built with X, Cocoa or NS display support (as is the
case for evm emacs-25.1-travis build), the fringe library is missing and
throws errors.
This commit is contained in:
Henrik Lissner 2017-05-14 11:54:18 +02:00
parent aba87b0916
commit 653e80e655
3 changed files with 20 additions and 16 deletions

View file

@ -22,8 +22,9 @@
:n "k" #'flycheck-error-list-previous-error
:n "RET" #'flycheck-error-list-goto-error)
(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])
(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.