From aff3d8d73f0280bb6f63dc8451e666a11bf5ffc5 Mon Sep 17 00:00:00 2001 From: larstvei Date: Mon, 26 Jun 2023 23:50:24 +0200 Subject: [PATCH] Use adaptive-wrap, and use visual-line-mode with olivetti --- init.org | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/init.org b/init.org index ab1e5a9..91be844 100644 --- a/init.org +++ b/init.org @@ -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