doomemacs/modules/ui/fill-column/autoload.el
Steven vanZyl 5eb03ae45b 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
2020-10-05 10:14:54 -04:00

12 lines
494 B
EmacsLisp

;;; ui/fill-column/autoload.el -*- lexical-binding: t; -*-
;;;###autoload (autoload 'hl-fill-column-mode "hl-fill-column" nil t)
;;;###autoload
;; Emacs 27 introduced `display-fill-column-indicator-mode' which should be
;; used instead of `hl-fill-column-mode'
(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)
#'hl-fill-column-mode))