mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
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:
@ -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)
|
||||
|
@ -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"))
|
||||
|
Reference in New Issue
Block a user