Enable zen module for markdown and org
This commit is contained in:
parent
262d05c9f5
commit
7d327e29c6
2
+org.el
2
+org.el
|
@ -38,3 +38,5 @@
|
||||||
;; Print babel results to the buffer
|
;; Print babel results to the buffer
|
||||||
(setq org-babel-default-header-args '((:session . "none") (:results . "output") (:exports . "code")
|
(setq org-babel-default-header-args '((:session . "none") (:results . "output") (:exports . "code")
|
||||||
(:cache . "no") (:noweb . "no") (:hlines . "no") (:tangle . "no")))
|
(:cache . "no") (:noweb . "no") (:hlines . "no") (:tangle . "no")))
|
||||||
|
;; Enter writeroom-mode in all org files
|
||||||
|
(add-hook 'org-mode-hook 'global-writeroom-mode)
|
||||||
|
|
11
config.el
11
config.el
|
@ -18,10 +18,11 @@
|
||||||
("~/.doom.d" . 0)))
|
("~/.doom.d" . 0)))
|
||||||
;; Load org configuration
|
;; Load org configuration
|
||||||
(after! org (load! "+org"))
|
(after! org (load! "+org"))
|
||||||
;; Disable line numbers and completion in Markdown
|
;; Enter writeroom and disable completion and line numbers in Markdown
|
||||||
(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 '(lambda () (display-line-numbers-mode -1)))
|
||||||
|
(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)
|
||||||
|
@ -33,6 +34,8 @@
|
||||||
(set-docsets! 'python-mode "Python 3" "NumPy" "Pandas"))
|
(set-docsets! 'python-mode "Python 3" "NumPy" "Pandas"))
|
||||||
(after! c++
|
(after! c++
|
||||||
(set-docsets! 'c++-mode "C++"))
|
(set-docsets! 'c++-mode "C++"))
|
||||||
|
(after! go
|
||||||
|
(set-docsets! 'go-mode "Go"))
|
||||||
;; Align columns in CSV mode
|
;; Align columns in CSV mode
|
||||||
(add-hook 'csv-mode-hook 'csv-align-mode)
|
(add-hook 'csv-mode-hook 'csv-align-mode)
|
||||||
;; Close compilation buffer if successfull(setq compilation-finish-functions
|
;; Close compilation buffer if successfull(setq compilation-finish-functions
|
||||||
|
@ -45,3 +48,5 @@
|
||||||
"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))
|
||||||
|
|
10
init.el
10
init.el
|
@ -44,6 +44,7 @@
|
||||||
vi-tilde-fringe ; fringe tildes to mark beyond EOB
|
vi-tilde-fringe ; fringe tildes to mark beyond EOB
|
||||||
window-select ; visually switch windows
|
window-select ; visually switch windows
|
||||||
workspaces ; tab emulation, persistence & separate workspaces
|
workspaces ; tab emulation, persistence & separate workspaces
|
||||||
|
zen ; distraction-free coding or writing
|
||||||
|
|
||||||
:editor
|
:editor
|
||||||
(evil +everywhere); come to the dark side, we have cookies
|
(evil +everywhere); come to the dark side, we have cookies
|
||||||
|
@ -71,6 +72,11 @@
|
||||||
;;term ; terminals in Emacs
|
;;term ; terminals in Emacs
|
||||||
;;vterm ; another terminals in Emacs
|
;;vterm ; another terminals in Emacs
|
||||||
|
|
||||||
|
:checkers
|
||||||
|
syntax ; tasing you for every semicolon you forget
|
||||||
|
;;spell ; tasing you for misspelling mispelling
|
||||||
|
;;grammar ; tasing grammar mistake every you make
|
||||||
|
|
||||||
:tools
|
:tools
|
||||||
;;ansible
|
;;ansible
|
||||||
;;debugger ; FIXME stepping through code, to help you add bugs
|
;;debugger ; FIXME stepping through code, to help you add bugs
|
||||||
|
@ -79,8 +85,6 @@
|
||||||
;;editorconfig ; let someone else argue about tabs vs spaces
|
;;editorconfig ; let someone else argue about tabs vs spaces
|
||||||
;;ein ; tame Jupyter notebooks with emacs
|
;;ein ; tame Jupyter notebooks with emacs
|
||||||
(eval +overlay) ; run code, run (also, repls)
|
(eval +overlay) ; run code, run (also, repls)
|
||||||
flycheck ; tasing you for every semicolon you forget
|
|
||||||
;;flyspell ; tasing you for misspelling mispelling
|
|
||||||
;;gist ; interacting with github gists
|
;;gist ; interacting with github gists
|
||||||
(lookup ; helps you navigate your code and documentation
|
(lookup ; helps you navigate your code and documentation
|
||||||
+docsets) ; ...or in Dash docsets locally
|
+docsets) ; ...or in Dash docsets locally
|
||||||
|
@ -88,7 +92,7 @@
|
||||||
;;macos ; MacOS-specific commands
|
;;macos ; MacOS-specific commands
|
||||||
magit ; a git porcelain for Emacs
|
magit ; a git porcelain for Emacs
|
||||||
make ; run make tasks from Emacs
|
make ; run make tasks from Emacs
|
||||||
;;pass ; password manager for nerds
|
pass ; password manager for nerds
|
||||||
pdf ; pdf enhancements
|
pdf ; pdf enhancements
|
||||||
;;prodigy ; FIXME managing external services & code builders
|
;;prodigy ; FIXME managing external services & code builders
|
||||||
;;rgb ; creating color strings
|
;;rgb ; creating color strings
|
||||||
|
|
Loading…
Reference in New Issue