Change fill-column conditionals to use macro

The conditionals in the `fill-column` module used the raw version number, this
commit changes them to use the macro provided by DOOM.

Suggested by @gagbo
This commit is contained in:
Steven vanZyl 2020-09-26 19:30:09 -04:00
parent 7daa3aaae9
commit 5eb03ae45b
2 changed files with 2 additions and 2 deletions

View file

@ -5,7 +5,7 @@
;;;###autoload
;; Emacs 27 introduced `display-fill-column-indicator-mode' which should be
;; used instead of `hl-fill-column-mode'
(if (>= emacs-major-version 27)
(if EMACS27+
(add-hook! '(text-mode-hook prog-mode-hook conf-mode-hook)
#'display-fill-column-indicator-mode)
(add-hook! '(text-mode-hook prog-mode-hook conf-mode-hook)

View file

@ -2,5 +2,5 @@
;;; ui/fill-column/packages.el
;; `hl-fill-column' is only used on Emacs versions before 27
(when (< emacs-major-version 27)
(unless EMACS27+
(package! hl-fill-column :pin "5782a91ba0182c4e562fa0db6379ff9dd472856b"))