mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
Alexander-Miller/treemacs@63e2bc207a -> Alexander-Miller/treemacs@1820db42c6 ema2159/centaur-tabs@8b4249c405 -> ema2159/centaur-tabs@5860a5c40c emacs-lsp/lsp-treemacs@d82df44d63 -> emacs-lsp/lsp-treemacs@c40a381730 emacsorphanage/git-gutter-fringe@4f19866494 -> emacsorphanage/git-gutter-fringe@648cb5b57f hlissner/emacs-doom-themes@e716ddbb88 -> hlissner/emacs-doom-themes@7d1a56623c joostkremers/writeroom-mode@7f4ec92404 -> joostkremers/writeroom-mode@eac1da790f rolandwalker/unicode-fonts@e3942fe40b -> rolandwalker/unicode-fonts@47f2397ade seagle0128/doom-modeline@ffedb34800 -> seagle0128/doom-modeline@69ede7d719 - Emacs 29 introduces the mode-line-active face, which inherits from variable-pitch, therefore the modeline uses your variable-pitch font, instead of your default. As of hlissner/emacs-doom-themes@7d1a56623c, this is no longer the case (fixing #5891). Fix: #5891
ui/zen
Description
This module provides two minor modes that make Emacs into a more comfortable writing or coding environment. Folks familiar with "distraction-free" or "zen" modes from other editors – or olivetti, sublimity, and tabula-rasa (Emacs plugins) – will feel right at home.
These modes are:
-
mixed-pitch-mode
- Which renders (most) text in a variable pitch font (see
doom-variable-pitch-font
). Unlikevariable-pitch-mode
, this will not affect segments of text that are intended to remain in a fixed pitch font, such as code blocks or ASCII tables. -
writeroom-mode
-
Our all-in-one "zen" mode that will:
- Center the current buffer.
- Remove superfluous UI elements (like the modeline).
- Activate
mixed-pitch-mode
. - Scale up the buffer's text slightly (see
+zen-text-scale
). - And make the window's borders slightly thicker (see
+zen-window-divider-size
).
Usage
This module provides two entry points:
-
M-x +zen/toggle
- toggles
writeroom-mode
(restricted to the current buffer). -
M-x +zen/toggle-fullscreen
- toggles zen mode in full-screen mode (deletes other windows and full screens the Emacs frame).
Invoke either command again to undo the change.
Module Flags
This module provides no flags.
Plugins
Hacks
- Doom has disabled all of writeroom-mode's "global" effects
(
writeroom-global-effects
andwriteroom-maximize-window
are set tonil
), and encapsulated them into the+zen/toggle-fullscreen
command, whereas+zen/toggle
will only operate on the current buffer. This way, the user may choose how far-reaching they want its effect to be. text-scale
has been advised to adjustvisual-fill-column
's margins, so its text won't "squeeze" as you scale it up (or "spill" when scaled down).
Prerequisites
This module has no prerequisites.
Features
Distractions-free mode
This can be activated with SPC t z
for evil users.
Non-evil users can use C-c t z
or 'M-x writeroom-mode'.
Configuration
Enable fullscreen on activation
(setq writeroom-fullscreen-effect t)
Or fullscreen manually with SPC t F
(or F11
for non-evil users).