![]() ![]() If you switch to another frame and display a writeroom-mode buffer, only the buffer-local effects will be visible. This means that they apply to the current frame. Most of the global effects that writeroom-mode enables are handled by setting specific frame parameters. Calling global-writeroom-mode again disables writeroom-mode in all buffers in which it is active, also those in which it was activated manually. When global-writeroom-mode is active, the function writeroom-mode can still be called to enable or disable writeroom-mode in individual buffers (regardless of their major mode, of course). This function enables the global effects and activates the buffer-local effects in all (current and future) buffers that have a major mode listed in the user option writeroom-major-modes (by default only text-mode). Alternatively, if you wish to use writeroom-mode in all buffers that have a particular major mode (e.g., text-mode, markdown-mode), you can use the global minor mode global-writeroom-mode. The global effects are of course activated only once and they remain active until writeroom-mode is deactivated in all buffers. It is possible to activate writeroom-mode in more than one buffer. In addition, there are several more options that are disabled by default but can be enabled in the customisation buffer. But writeroom-mode is meant for distraction-free writing, so these effects do make sense.Īll these effects can be disabled or customised. Because writeroom-mode is a minor mode, this isn't entirely on the up and up, since minor modes aren't supposed to have such global effects. The other effects apply to the current frame. ![]() add window margins to the current buffer so that the text is 80 characters wide.maximise the current window (i.e., delete all other windows in the frame).enable a bottom window divider of 1 pixel.In the default configuration, after activating writeroom-mode, your screen looks like this (modulo the colour theme, of course):īy default, writeroom-mode does the following things: A screen shot can probably explain best what writeroom-mode does. ![]() Writeroom-mode can be activated in a buffer by calling M-x writeroom-mode RET. If installing manually, make sure to also install its dependency visual-fill-column. Writeroom-mode can be installed through the package manager from Melpa. writeroom-mode is meant for GNU Emacs 24, lower versions are not actively supported. Writeroom-mode is a minor mode for Emacs that implements a distraction-free writing mode similar to the famous Writeroom editor for OS X. ![]()
0 Comments
Leave a Reply. |