Enable zen module for markdown and org
This commit is contained in:
11
config.el
11
config.el
@@ -18,10 +18,11 @@
|
||||
("~/.doom.d" . 0)))
|
||||
;; Load org configuration
|
||||
(after! org (load! "+org"))
|
||||
;; Disable line numbers and completion in Markdown
|
||||
(add-hook 'markdown-mode-hook '(lambda () (display-line-numbers-mode -1)))
|
||||
;; Enter writeroom and disable completion and line numbers in Markdown
|
||||
(after! markdown
|
||||
(set-company-backend! 'markdown-mode nil))
|
||||
(set-company-backend! 'markdown-mode nil)
|
||||
(add-hook 'markdown-mode-hook '(lambda () (display-line-numbers-mode -1)))
|
||||
(add-hook 'markdown-mode-hook 'global-writeroom-mode))
|
||||
;; Reload file from disk without confirmation
|
||||
(defun revert-buffer-no-confirm ()
|
||||
(interactive)
|
||||
@@ -33,6 +34,8 @@
|
||||
(set-docsets! 'python-mode "Python 3" "NumPy" "Pandas"))
|
||||
(after! c++
|
||||
(set-docsets! 'c++-mode "C++"))
|
||||
(after! go
|
||||
(set-docsets! 'go-mode "Go"))
|
||||
;; Align columns in CSV mode
|
||||
(add-hook 'csv-mode-hook 'csv-align-mode)
|
||||
;; Close compilation buffer if successfull(setq compilation-finish-functions
|
||||
@@ -45,3 +48,5 @@
|
||||
"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))
|
||||
|
||||
Reference in New Issue
Block a user