Remove global visual line mode, set for text and prog mode only

This commit is contained in:
Evie Litherland-Smith 2024-10-14 10:20:23 +01:00
parent 5bbd5a1b1f
commit 07257c6105

View file

@ -194,16 +194,13 @@ Configure the look and feel of Emacs
:if (package-installed-p 'visual-fill-column)
:functions (visual-fill-column-mode
global-visual-fill-column-mode)
:hook (((dired-mode org-src-mode org-agenda-mode) . (lambda () (visual-fill-column-mode +1)))
((doc-view-mode image-mode) . (lambda () (visual-fill-column-mode -1))))
:hook (((text-mode prog-mode) . (lambda () (visual-line-mode +1) (visual-fill-column-mode +1))))
:custom
(visual-fill-column-width 160)
(visual-fill-column-center-text t)
(visual-fill-column-enable-sensible-window-split t)
:config
(setopt visual-line-fringe-indicators '(left-curly-arrow right-curly-arrow))
(global-visual-line-mode +1)
(global-visual-fill-column-mode +1))
(setopt visual-line-fringe-indicators '(left-curly-arrow right-curly-arrow)))
#+end_src
*** Font ligatures
#+begin_src emacs-lisp