Enable writeroom in mardown

This commit is contained in:
coolneng 2023-09-19 23:42:52 +02:00
parent 27a2755eb4
commit 379ff2ec1e
Signed by: coolneng
GPG Key ID: 9893DA236405AF57
2 changed files with 4 additions and 2 deletions

View File

@ -58,8 +58,6 @@
org-babel-default-lob-header-args '((:exports . "both"))) org-babel-default-lob-header-args '((:exports . "both")))
;; Enter writeroom-mode in all org files ;; Enter writeroom-mode in all org files
(add-hook! 'org-mode-hook 'global-writeroom-mode) (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) (add-hook! 'org-mode-hook 'visual-line-mode)
;; Respect LANGUAGE export variable ;; Respect LANGUAGE export variable
(add-to-list 'org-latex-packages-alist '("AUTO" "babel" t ("pdflatex"))) (add-to-list 'org-latex-packages-alist '("AUTO" "babel" t ("pdflatex")))

View File

@ -29,6 +29,10 @@
(add-hook! 'markdown-mode-hook (display-line-numbers-mode -1)) (add-hook! 'markdown-mode-hook (display-line-numbers-mode -1))
(after! markdown (after! markdown
(set-company-backend! 'markdown-mode nil)) (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 ;; Reload file from disk without confirmation
(defun revert-buffer-no-confirm () (defun revert-buffer-no-confirm ()
(interactive) (interactive)