mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
visual-fill-column: account for emacs 26 line numbers
This commit is contained in:
@ -317,8 +317,12 @@ local value, whether or not it's permanent-local. Therefore, we cycle
|
|||||||
(def-package! visual-fill-column
|
(def-package! visual-fill-column
|
||||||
:commands visual-fill-column-mode
|
:commands visual-fill-column-mode
|
||||||
:config
|
:config
|
||||||
(setq-default visual-fill-column-center-text nil
|
(setq-default
|
||||||
visual-fill-column-width fill-column))
|
visual-fill-column-center-text t
|
||||||
|
visual-fill-column-width
|
||||||
|
;; take Emacs 26 line numbers into account
|
||||||
|
(+ (if (boundp 'display-line-numbers) 6 0)
|
||||||
|
fill-column)))
|
||||||
|
|
||||||
|
|
||||||
;;
|
;;
|
||||||
|
Reference in New Issue
Block a user