typewriter 
- Description
- Turn Emacs into a text adder
- Latest
- typewriter-1.1.0.tar (.sig), 2026-Sep-15, 30.0 KiB
- Maintainer
- Enrico Flor <enrico@eflor.net>
- Other versions:
- development version
- Website
- https://github.com/enricoflor/typewriter.el
- ELPA's Repository
- CGit or Gitweb
- Badge
To install this package from Emacs, use package-install or list-packages.
Full description
This package provides typewriter-mode, a small minor mode that
deliberately handicaps Emacs to an extreme degree in order to provide
something as close as possible to the strict forward-only typewriter
experience. Some find that the lack of editing facilities fosters a
state of concentration and focus that makes certain types of creative
writing more satisfying.
The package has seven configuration options:
typewriter-preserve-undo-history: if non-nil, you'll be able to undo edits if you turntypewriter-mode. Default ist.typewriter-recenter: if non-nil, the line where cursor is at is recentered (the commandrecenteris called) after every licit keystroke. Default isnil.typewriter-fill-column: ifnil, your lines will be as long as you want. Set to any integerN, emacs-turned-to-typewriter refuses to type anything once you reach columnNuntil you pressRETto open a new line. Default isnil.typewriter-warning-bell-offset: If your fill column is set, a physical ding will sound this many characters before the margin to warn you that the carriage is about to jam. Default is8.typewriter-show-chars-remaining: If this andtypewriter-fill-columnare non-nil, the modeline will display how many characters are left in the current line until the fill column (the margin) is reached. Default ist.typewriter-modeline-format: Format string for the modeline indicator of remaining characters. Default is" [%d]".typewriter-tab-width: self explanatory. Default is8.
There are two hooks available for the user to customize the typing experience, no function is added to them by default:
typewriter-keystroke-hooktypewriter-carriage-return-hook
Although no systematic test has been carried out, this package's minimalism should ensure its compatibility with packages that change the layout of text in the window, such as the fairly popular olivetti, or any configuration that (for instance) hides or alters element of the emacs interface.