2019-07-21 23:57:57 +02:00
|
|
|
;;; ui/fill-column/autoload.el -*- lexical-binding: t; -*-
|
|
|
|
|
2019-07-24 15:25:24 +02:00
|
|
|
;;;###autoload (autoload 'hl-fill-column-mode "hl-fill-column" nil t)
|
|
|
|
|
2019-07-21 23:57:57 +02:00
|
|
|
;;;###autoload
|
2020-09-26 11:49:03 -04:00
|
|
|
;; Emacs 27 introduced `display-fill-column-indicator-mode' which should be
|
|
|
|
;; used instead of `hl-fill-column-mode'
|
2020-10-05 10:08:51 -04:00
|
|
|
(defun +fill-column-enable-h (&optional arg)
|
|
|
|
(interactive "p")
|
|
|
|
(if (fboundp 'display-fill-column-indicator-mode)
|
|
|
|
(display-fill-column-indicator-mode arg)
|
|
|
|
(hl-fill-column-mode arg)))
|
|
|
|
|
|
|
|
;;;###autoload
|
|
|
|
(add-hook! '(text-mode-hook prog-mode-hook conf-mode-hook)
|
|
|
|
#'+fill-column-enable-h)
|