Don't enable visual-fill-column-mode in text-mode, just prog-mode
This commit is contained in:
parent
b1384c14fc
commit
eef7c81e90
|
@ -189,14 +189,13 @@ Configure the look and feel of Emacs
|
|||
#+end_src
|
||||
*** Visual fill column
|
||||
#+begin_src emacs-lisp
|
||||
(setopt fill-column 80)
|
||||
(add-to-list 'package-selected-packages 'visual-fill-column)
|
||||
(use-package visual-fill-column
|
||||
:if (package-installed-p 'visual-fill-column)
|
||||
:functions (visual-fill-column-mode)
|
||||
:hook (((text-mode prog-mode) . (lambda () (visual-line-mode +1) (visual-fill-column-mode +1))))
|
||||
:hook ((prog-mode . (lambda () (visual-line-mode +1) (visual-fill-column-mode +1))))
|
||||
:custom
|
||||
(visual-fill-column-width 120)
|
||||
(visual-fill-column-width 160)
|
||||
(visual-fill-column-center-text t)
|
||||
(visual-fill-column-enable-sensible-window-split t)
|
||||
:config
|
||||
|
|
Loading…
Reference in a new issue