Add org configuration in a separate file

This commit is contained in:
coolneng 2019-12-07 20:16:04 +01:00
parent c5c491139f
commit 5fb0230f6b
Signed by: coolneng
GPG Key ID: 9893DA236405AF57
3 changed files with 33 additions and 0 deletions

30
+org.el Normal file
View File

@ -0,0 +1,30 @@
;;; ~/.doom.d/+org.el -*- lexical-binding: t; -*-
;; Org mode configuration
;;
;; Change Org TODO keywords
(setq org-todo-keywords '((sequence "TODO" "NEXT" "WAITING" "INACTIVE" "|" "DONE" "CANCELLED")))
;; Rice Org elements
(setq org-todo-keyword-faces '(("INACTIVE" . "grey") ("NEXT" . "turquoise") ("WAITING" . ""))
org-ellipsis ""
org-bullets-bullet-list '("" "" "" ""))
;; Cycle through Org header visibility and disable completion
(after! evil-org
(remove-hook 'org-tab-first-hook #'+org-cycle-only-current-subtree-h)
(remove-hook 'org-mode-hook #'auto-fill-mode))
;; Turn off line numbers in Org and Markdown
(add-hook 'org-mode-hook (lambda () (display-line-numbers-mode -1)))
;; Tailor Org super agenda
(use-package! org-super-agenda
:after org-agenda
:init
(setq org-super-agenda-groups '((:name "Due today"
:deadline today)
(:name "Important"
:priority "A")
(:name "Overdue"
:deadline past)
(:name "Due soon"
:deadline future)))
:config
(org-super-agenda-mode)
)

View File

@ -24,3 +24,5 @@
(setq backup-directory-alist `(("." . "~/.cache")))
(setq auto-save-list-file-prefix
(concat "~/.cache/emacs"))
;; Load org configuration
(after! org (load! "+org"))

View File

@ -5,3 +5,4 @@
;; (package! some-package)
;; (package! another-package :recipe (:host github :repo "username/repo"))
;; (package! builtin-package :disable t)
(package! org-super-agenda)