doom.d/+org.el

41 lines
1.6 KiB
EmacsLisp
Raw Normal View History

;;; ~/.doom.d/+org.el -*- lexical-binding: t; -*-
;; Org mode configuration
;;
2019-12-26 01:09:55 +01:00
;; Change TODO keywords
(setq org-todo-keywords '((sequence "TODO" "NEXT" "WAITING" "INACTIVE" "|" "DONE" "CANCELLED")))
2019-12-26 01:09:55 +01:00
;; Rice elements
(setq org-todo-keyword-faces '(("INACTIVE" . "grey") ("NEXT" . "turquoise") ("WAITING" . warning))
org-ellipsis ""
org-bullets-bullet-list '("" "" "" ""))
2019-12-26 01:09:55 +01:00
;; Cycle through header visibility
(after! evil-org
2019-12-26 01:09:55 +01:00
(remove-hook 'org-tab-first-hook #'+org-cycle-only-current-subtree-h))
;; Disable completion
(set-company-backend! 'org-mode nil)
;; Turn off line numbers
(add-hook 'org-mode-hook (lambda () (display-line-numbers-mode -1)))
;; Add Notes to agenda
(setq org-agenda-files '("~/Notes"))
;; 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)
)
2019-12-26 01:09:55 +01:00
;; Show inline images by default
(setq org-startup-with-inline-images t)
;; Add timestamp to DONE task
(setq org-log-done 'time)
2020-01-06 10:20:20 +01:00
;; 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")))