Add org configuration in a separate file
This commit is contained in:
parent
c5c491139f
commit
5fb0230f6b
|
@ -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)
|
||||||
|
)
|
|
@ -24,3 +24,5 @@
|
||||||
(setq backup-directory-alist `(("." . "~/.cache")))
|
(setq backup-directory-alist `(("." . "~/.cache")))
|
||||||
(setq auto-save-list-file-prefix
|
(setq auto-save-list-file-prefix
|
||||||
(concat "~/.cache/emacs"))
|
(concat "~/.cache/emacs"))
|
||||||
|
;; Load org configuration
|
||||||
|
(after! org (load! "+org"))
|
||||||
|
|
|
@ -5,3 +5,4 @@
|
||||||
;; (package! some-package)
|
;; (package! some-package)
|
||||||
;; (package! another-package :recipe (:host github :repo "username/repo"))
|
;; (package! another-package :recipe (:host github :repo "username/repo"))
|
||||||
;; (package! builtin-package :disable t)
|
;; (package! builtin-package :disable t)
|
||||||
|
(package! org-super-agenda)
|
||||||
|
|
Loading…
Reference in New Issue