Use adaptive-wrap, and use visual-line-mode with olivetti

This commit is contained in:
larstvei 2023-06-26 23:50:24 +02:00
parent b6d5254d6f
commit aff3d8d73f

View File

@ -592,11 +592,21 @@
:defer t
:bind (:map custom-bindings-map ("C-c o" . olivetti-mode))
:config
(setq-default olivetti-body-width (+ fill-column 3))
(remove-hook 'olivetti-mode-on-hook 'visual-line-mode))
(setq-default olivetti-body-width (+ fill-column 3)))
#+end_src
** Adaptive wrapping
I usually have auto-fill-mode enabled, and most of my files
#+begin_src emacs-lisp
(use-package adaptive-wrap
:defer t
:hook (visual-line-mode . adaptive-wrap-prefix-mode))
#+end_src
** Focusing with focus
[[https://github.com/larstvei/Focus][Focus]] is my own package. It looks pretty nice, especially in combination