Enable zen module for markdown and org

This commit is contained in:
coolneng 2020-01-26 14:06:00 +01:00
parent 262d05c9f5
commit 7d327e29c6
Signed by: coolneng
GPG Key ID: 9893DA236405AF57
3 changed files with 18 additions and 7 deletions

View File

@ -1,7 +1,7 @@
;;; ~/.doom.d/+org.el -*- lexical-binding: t; -*-
;; Org mode configuration
;;
;; Change TODO keywords
;; Change TODO keywords
(setq org-todo-keywords '((sequence "TODO" "NEXT" "WAITING" "INACTIVE" "|" "DONE" "CANCELLED")))
;; Rice elements
(setq org-todo-keyword-faces '(("INACTIVE" . "grey") ("NEXT" . "turquoise") ("WAITING" . warning))
@ -38,3 +38,5 @@
;; Print babel results to the buffer
(setq org-babel-default-header-args '((:session . "none") (:results . "output") (:exports . "code")
(:cache . "no") (:noweb . "no") (:hlines . "no") (:tangle . "no")))
;; Enter writeroom-mode in all org files
(add-hook 'org-mode-hook 'global-writeroom-mode)

View File

@ -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))

10
init.el
View File

@ -44,6 +44,7 @@
vi-tilde-fringe ; fringe tildes to mark beyond EOB
window-select ; visually switch windows
workspaces ; tab emulation, persistence & separate workspaces
zen ; distraction-free coding or writing
:editor
(evil +everywhere); come to the dark side, we have cookies
@ -71,6 +72,11 @@
;;term ; 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
;;ansible
;;debugger ; FIXME stepping through code, to help you add bugs
@ -79,8 +85,6 @@
;;editorconfig ; let someone else argue about tabs vs spaces
;;ein ; tame Jupyter notebooks with emacs
(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
(lookup ; helps you navigate your code and documentation
+docsets) ; ...or in Dash docsets locally
@ -88,7 +92,7 @@
;;macos ; MacOS-specific commands
magit ; a git porcelain for Emacs
make ; run make tasks from Emacs
;;pass ; password manager for nerds
pass ; password manager for nerds
pdf ; pdf enhancements
;;prodigy ; FIXME managing external services & code builders
;;rgb ; creating color strings