ui/fci: fix invalid-face: line-number error #738

The line-number face was introduced in Emacs 26 and will cause this
error in earlier versions.
This commit is contained in:
Henrik Lissner 2018-07-03 00:57:12 +02:00
parent 9648aa4093
commit 24686948c2
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -1,7 +1,9 @@
;;; ui/fci/config.el -*- lexical-binding: t; -*-
(defvar +fci-rule-color-function
(lambda () (face-foreground 'line-number))
(if EMACS26+
(lambda () (face-foreground 'line-number))
(lambda () (face-foreground 'font-lock-comment-face)))
"Color used to draw the fill-column rule.
Accepts a color string or a function that returns a color.