Ashton Wiersdorf via public-inbox
olivetti-mode when the window is wide
Olivetti is a wonderful mode. So wonderful, in fact, that I wish it came on automatically. This package does just that.
Until I get this on MELPA or the like, you can just clone this repository, and put the following in your
(load-file "path/to/auto-olivetti.el") (auto-olivetti-mode)
If you use
use-package with Elpaca, you can install like so:
(use-package auto-olivetti :elpaca (auto-olivetti :host sourcehut :repo "ashton314/auto-olivetti") :config (auto-olivetti-mode))
It's a good idea to start by customizing the value of
olivetti-body-width. Set this as part of your
olivetti configuration or with
setq-default like so:
(use-package olivetti :custom (olivetti-body-width 130)) ;; OR (setq-default olivetti-body-width 130) (use-package auto-olivetti :config (auto-olivetti-mode))
Customize interface should work as well.)
List of modes for which to enable
olivetti-mode automatically. Defaults to
'(text-mode prog-mode) is pleasant.
olivetti-body-width at which to enable
Number of columns at which to enable
Choose between the fractional and absolute methods.
perfect-margin for a little while and liked it. I found it too aggressive though, and wanted something simpler and cleaner, which is why I built this package.