Enable writeroom in mardown
This commit is contained in:
parent
27a2755eb4
commit
379ff2ec1e
2
+org.el
2
+org.el
|
@ -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")))
|
||||||
|
|
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue