From 379ff2ec1e563b66c58f4c53cebd02e1478518be Mon Sep 17 00:00:00 2001 From: coolneng Date: Tue, 19 Sep 2023 23:42:52 +0200 Subject: [PATCH] Enable writeroom in mardown --- +org.el | 2 -- config.el | 4 ++++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/+org.el b/+org.el index fa456e6..d2ed1ec 100644 --- a/+org.el +++ b/+org.el @@ -58,8 +58,6 @@ org-babel-default-lob-header-args '((:exports . "both"))) ;; Enter writeroom-mode in all org files (add-hook! 'org-mode-hook 'global-writeroom-mode) -(setq writeroom-major-modes '(org-mode) - +zen-text-scale 1.5) (add-hook! 'org-mode-hook 'visual-line-mode) ;; Respect LANGUAGE export variable (add-to-list 'org-latex-packages-alist '("AUTO" "babel" t ("pdflatex"))) diff --git a/config.el b/config.el index 5caedcd..8d61876 100644 --- a/config.el +++ b/config.el @@ -29,6 +29,10 @@ (add-hook! 'markdown-mode-hook (display-line-numbers-mode -1)) (after! markdown (set-company-backend! 'markdown-mode nil)) +;; Enable writeroom-mode for text modes +(setq writeroom-major-modes '(org-mode markdown-mode) + +zen-text-scale 1.5) +(add-hook! 'markdown-mode-hook 'global-writeroom-mode) ;; Reload file from disk without confirmation (defun revert-buffer-no-confirm () (interactive)