Disable writeroom in markdown-mode

This commit is contained in:
coolneng 2022-03-11 11:54:01 +01:00
parent e244dac20c
commit 971cc7e5cb
Signed by: coolneng
GPG Key ID: 9893DA236405AF57
2 changed files with 3 additions and 5 deletions

View File

@ -38,6 +38,7 @@
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))
;; Respect LANGUAGE export variable
(add-to-list 'org-latex-packages-alist '("AUTO" "babel" t ("pdflatex")))
;; Don't evaluate code blocks on export

View File

@ -21,11 +21,10 @@
auto-save-list-file-prefix (concat "~/.cache"))
;; Load org configuration
(after! org (load! "+org"))
;; Enter writeroom and disable completion and line numbers in Markdown
;; Disable completion and line numbers in Markdown
(add-hook 'markdown-mode-hook (lambda () (display-line-numbers-mode -1)))
(after! markdown
(set-company-backend! 'markdown-mode nil)
(add-hook 'markdown-mode-hook 'global-writeroom-mode))
(set-company-backend! 'markdown-mode nil))
;; Reload file from disk without confirmation
(defun revert-buffer-no-confirm ()
(interactive)
@ -43,8 +42,6 @@
"0.5 sec" nil 'delete-windows-on
(get-buffer-create "*compilation*"))
(message "No Compilation Errors!")))))
;; Enable writeroom for text modes
(setq writeroom-major-modes '(markdown-mode org-mode))
;; Map leader key for major mode to ,
(setq doom-localleader-key ",")
;; Show matching parenthesis on the minibuffer