[Emacs] Activate writeroom-mode for text, org, and markdown modes

This commit is contained in:
Lucien Cartier-Tilet 2022-02-07 12:05:50 +01:00
parent ae075d044d
commit bae81921f2
Signed by: phundrak
GPG Key ID: BD7789E705CB8DCA
2 changed files with 3 additions and 2 deletions

View File

@ -1,3 +1,2 @@
((org-mode . ((org-confirm-babel-evaluate . nil)
(eval . (writeroom-mode 1))
(org-latex-reference-command . "\\ref{%s}"))))

View File

@ -2901,11 +2901,13 @@ is a bit too small for me, and I prefer not to go fullscren.
(use-package writeroom-mode
:defer t
:straight (:build t)
:init (global-writeroom-mode 1)
:config
(setq writeroom-width 100
writeroom-fullscreen-effect nil
writeroom-maximize-window nil
writeroom-mode-line t))
writeroom-mode-line t
writeroom-major-modes '(text-mode org-mode markdown-mode)))
#+end_src
** Emacs built-ins