Emacs: Only use fill-column-indicator foreground in Emacs >= 27.

This commit is contained in:
tastytea 2020-04-20 02:04:00 +02:00
parent 343130ce02
commit eabc35c0b4
1 changed files with 3 additions and 2 deletions

View File

@ -1,6 +1,6 @@
;;; common.el --- Common settings for text files. -*- lexical-binding: t; -*-
;; Time-stamp: <2020-04-17T13:53:16+0200>
;; Time-stamp: <2020-04-20T02:03:53+0200>
;;; Commentary:
@ -46,7 +46,8 @@
(face-background 'default))
(set-face-foreground 'ruler-mode-column-number
(face-background 'default))
(if (window-system)
(if (and (window-system)
(>= emacs-major-version 27))
(set-face-foreground 'ruler-mode-fill-column
(face-foreground 'fill-column-indicator
nil t))