Description
Olivetti is a minor mode for Emacs that sets up a comfortable writing layout. You set a body width for the text, either as a number of characters, as a fraction of the window width, or as the value of fill-column plus two, and Olivetti resizes the window margins so the text stays in the middle. If the width is a whole number, it scales with text-scale-mode. Its style option can draw the margins with fringes, with margins or with both, for a page-like look. You can change the width interactively with commands such as olivetti-set-width and the shrink and expand commands. Everything it does is buffer-local, so you can write prose in one buffer and code in another, side by side in the same frame. It can also remember the state of visual-line-mode when you enter and restore it when you leave. It is available from MELPA-stable and MELPA, or as a single file from a tagged release. It suits anyone who writes long-form text in Emacs.…
Highlights
- Centers text by balancing window margins
- Width as characters or a fraction of the window
- Margins, fringes or both for a page look
- Interactive width commands
- Buffer-local, so code and prose can share a frame
- Available from MELPA
Ratings & Reviews
No ratings yet
Be the first to rate Olivetti.
People also visit
Olivetti FAQ
What is Olivetti?
An Emacs minor mode that keeps your text centred by balancing the window margins.
How do I install it?
Install the stable release from MELPA-stable through list-packages, or download a tagged release and put the file on your load-path.
What does the body width accept?
A whole number for a number of characters, a float between 0.0 and 1.0 for a fraction of the window, or nil to use fill-column plus two.
Does it change other buffers?
No. Olivetti keeps everything it does buffer-local, so only buffers where it is enabled change.
Which Emacs version is needed?
The README lists Emacs 24.4 as the requirement.
What are the best Olivetti alternatives?
Popular alternatives to Olivetti include Emacs Writing Studio, Fountain Mode and Org Remark. See all Olivetti alternatives



