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")))
|
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))
|
||||||
;; 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")))
|
||||||
;; Don't evaluate code blocks on export
|
;; Don't evaluate code blocks on export
|
||||||
|
|
|
@ -21,11 +21,10 @@
|
||||||
auto-save-list-file-prefix (concat "~/.cache"))
|
auto-save-list-file-prefix (concat "~/.cache"))
|
||||||
;; Load org configuration
|
;; Load org configuration
|
||||||
(after! org (load! "+org"))
|
(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)))
|
(add-hook 'markdown-mode-hook (lambda () (display-line-numbers-mode -1)))
|
||||||
(after! markdown
|
(after! markdown
|
||||||
(set-company-backend! 'markdown-mode nil)
|
(set-company-backend! 'markdown-mode nil))
|
||||||
(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)
|
||||||
|
@ -43,8 +42,6 @@
|
||||||
"0.5 sec" nil 'delete-windows-on
|
"0.5 sec" nil 'delete-windows-on
|
||||||
(get-buffer-create "*compilation*"))
|
(get-buffer-create "*compilation*"))
|
||||||
(message "No Compilation Errors!")))))
|
(message "No Compilation Errors!")))))
|
||||||
;; Enable writeroom for text modes
|
|
||||||
(setq writeroom-major-modes '(markdown-mode org-mode))
|
|
||||||
;; Map leader key for major mode to ,
|
;; Map leader key for major mode to ,
|
||||||
(setq doom-localleader-key ",")
|
(setq doom-localleader-key ",")
|
||||||
;; Show matching parenthesis on the minibuffer
|
;; Show matching parenthesis on the minibuffer
|
||||||
|
|
Loading…
Reference in New Issue