GNU ELPA - olivetti

olivetti

Description
Minor mode for a nice writing environment
Latest
olivetti-1.7.1.el, 2019-May-19, 12.1 KiB
Maintainer
Paul W. Rankin <pwr@sdf.org>
Home page
http://elpa.gnu.org/packages/olivetti.html
Browse repository
CGit or Gitweb

To install this package, run in Emacs:

M-x package-install RET olivetti RET

Full description

# Olivetti #

A simple Emacs minor mode for a nice writing environment.

Screenshot: https://f002.backblazeb2.com/file/pwr-share/olivetti.png

## Features ##

- Set a desired text body width to automatically resize window margins to
  keep the text comfortably in the middle of the window.
- Text body width can be the number of characters (an integer) or a fraction
  of the window width (a float between 0.0 and 1.0).
- Interactively change body width with:
  olivetti-shrink C-c [ [ [ ...
  olivetti-expand C-c ] ] ] ...
  olivetti-set-width C-c \
- If olivetti-body-width is an integer, the text body width will scale with
  use of text-scale-mode, whereas if a fraction (float) then the text body
  width will remain at that fraction.
- Optionally remember the state of visual-line-mode on entry and recall its
  state on exit.

Olivetti keeps everything it does buffer-local, so you can write prose in one
buffer and code in another, side-by-side in the same frame. For those looking
for a hardcore distraction-free writing mode with a much larger scope, I
recommend writeroom-mode: https://github.com/joostkremers/writeroom-mode.

## Requirements ##

- Emacs 24.5

## Installation ##

Olivetti is now part of GNU ELPA and can be installed with:
M-x package-install RET olivetti RET

## Contributing ##

To report bugs, please use M-x report-emacs-bug RET or send an email to
<bug-gnu-emacs@gnu.org>. Please include "olivetti" in the subject.

## Hints ##

To always use a different width for a specific file, set a File Variable:
M-x add-file-local-variable RET olivetti-body-width RET 66 RET

See (info "(emacs) File Variables").

Old versions

olivetti-1.7.0.el2019-Apr-2511.8 KiB