From bae81921f2b63c8288ab79dfa0b8fb1bed782eaa Mon Sep 17 00:00:00 2001 From: Lucien Cartier-Tilet Date: Mon, 7 Feb 2022 12:05:50 +0100 Subject: [PATCH] [Emacs] Activate writeroom-mode for text, org, and markdown modes --- org/config/.dir-locals.el | 1 - org/config/emacs.org | 4 +++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/org/config/.dir-locals.el b/org/config/.dir-locals.el index 4eed332..faa8462 100644 --- a/org/config/.dir-locals.el +++ b/org/config/.dir-locals.el @@ -1,3 +1,2 @@ ((org-mode . ((org-confirm-babel-evaluate . nil) - (eval . (writeroom-mode 1)) (org-latex-reference-command . "\\ref{%s}")))) diff --git a/org/config/emacs.org b/org/config/emacs.org index 0893a8b..f5c7806 100644 --- a/org/config/emacs.org +++ b/org/config/emacs.org @@ -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