2019-12-07 20:16:04 +01:00
|
|
|
;;; ~/.doom.d/+org.el -*- lexical-binding: t; -*-
|
|
|
|
;; Org mode configuration
|
|
|
|
;;
|
2020-02-23 14:10:38 +01:00
|
|
|
(setq org-ellipsis " ▼ "
|
2019-12-16 20:08:37 +01:00
|
|
|
org-bullets-bullet-list '("◉" "⁖" "○" "‣"))
|
2019-12-26 01:09:55 +01:00
|
|
|
;; Cycle through header visibility
|
2019-12-07 20:16:04 +01:00
|
|
|
(after! evil-org
|
2019-12-26 01:09:55 +01:00
|
|
|
(remove-hook 'org-tab-first-hook #'+org-cycle-only-current-subtree-h))
|
2019-12-31 05:56:59 +01:00
|
|
|
;; Disable completion
|
|
|
|
(set-company-backend! 'org-mode nil)
|
|
|
|
;; Turn off line numbers
|
2019-12-07 20:16:04 +01:00
|
|
|
(add-hook 'org-mode-hook (lambda () (display-line-numbers-mode -1)))
|
2020-01-23 14:49:15 +01:00
|
|
|
;; Add Notes to agenda
|
|
|
|
(setq org-agenda-files '("~/Notes"))
|
2019-12-07 20:16:04 +01:00
|
|
|
;; 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")))
|
2020-01-26 14:06:00 +01:00
|
|
|
;; Enter writeroom-mode in all org files
|
|
|
|
(add-hook 'org-mode-hook 'global-writeroom-mode)
|
2020-03-09 17:05:02 +01:00
|
|
|
;; Respect LANGUAGE export variable
|
|
|
|
(add-to-list 'org-latex-packages-alist '("AUTO" "babel" t ("pdflatex")))
|