Adjust visual-fill-column after text scaling
This commit is contained in:
parent
77e58609d4
commit
5a8fb81739
1 changed files with 2 additions and 1 deletions
|
@ -20,7 +20,8 @@
|
||||||
(defun +zen-enable-text-scaling-mode-h ()
|
(defun +zen-enable-text-scaling-mode-h ()
|
||||||
"Enable `mixed-pitch-mode' when in `+zen-mixed-pitch-modes'."
|
"Enable `mixed-pitch-mode' when in `+zen-mixed-pitch-modes'."
|
||||||
(when (/= +zen-text-scale 0)
|
(when (/= +zen-text-scale 0)
|
||||||
(text-scale-set (if writeroom-mode +zen-text-scale 0)))))
|
(text-scale-set (if writeroom-mode +zen-text-scale 0))
|
||||||
|
(visual-fill-column-adjust))))
|
||||||
|
|
||||||
;; Adjust margins when text size is changed
|
;; Adjust margins when text size is changed
|
||||||
(advice-add #'text-scale-adjust :after #'visual-fill-column-adjust))
|
(advice-add #'text-scale-adjust :after #'visual-fill-column-adjust))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue