Disable writeroom in markdown-mode
This commit is contained in:
parent
e244dac20c
commit
971cc7e5cb
1
+org.el
1
+org.el
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue