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:
parent
7daa3aaae9
commit
5eb03ae45b
2 changed files with 2 additions and 2 deletions
|
@ -5,7 +5,7 @@
|
||||||
;;;###autoload
|
;;;###autoload
|
||||||
;; Emacs 27 introduced `display-fill-column-indicator-mode' which should be
|
;; Emacs 27 introduced `display-fill-column-indicator-mode' which should be
|
||||||
;; used instead of `hl-fill-column-mode'
|
;; 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)
|
(add-hook! '(text-mode-hook prog-mode-hook conf-mode-hook)
|
||||||
#'display-fill-column-indicator-mode)
|
#'display-fill-column-indicator-mode)
|
||||||
(add-hook! '(text-mode-hook prog-mode-hook conf-mode-hook)
|
(add-hook! '(text-mode-hook prog-mode-hook conf-mode-hook)
|
||||||
|
|
|
@ -2,5 +2,5 @@
|
||||||
;;; ui/fill-column/packages.el
|
;;; ui/fill-column/packages.el
|
||||||
|
|
||||||
;; `hl-fill-column' is only used on Emacs versions before 27
|
;; `hl-fill-column' is only used on Emacs versions before 27
|
||||||
(when (< emacs-major-version 27)
|
(unless EMACS27+
|
||||||
(package! hl-fill-column :pin "5782a91ba0182c4e562fa0db6379ff9dd472856b"))
|
(package! hl-fill-column :pin "5782a91ba0182c4e562fa0db6379ff9dd472856b"))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue