-
Notifications
You must be signed in to change notification settings - Fork 366
/
org-config.el
54 lines (46 loc) · 1.81 KB
/
org-config.el
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
;; ---------------------------------------
;; Org-mode configuration
;; ---------------------------------------
;; ---------------------------------------
;; Notes and Tasks
(with-eval-after-load 'org
(setq
;; Define the location of the file to hold tasks
org-default-notes-file "~/projects/todo-list.org"
;; Define a kanban style set of stages for todo tasks
org-todo-keywords '((sequence "TODO" "DOING" "BLOCKED" "REVIEW" "|" "DONE" "ARCHIVED"))
;; Progress Log - add CLOSED: property & current date-time when TODO item enters DONE
org-log-done 'time
;; Setting colours (faces) of task states
;; https://github.com/tkf/org-mode/blob/master/lisp/org-faces.el#L376
;; Using X11 colour names from: https://en.wikipedia.org/wiki/Web_colors
;; Using `with-eval-after-load' as a hook to call this setting when org-mode is run
org-todo-keyword-faces
'(("TODO" . "SlateGray")
("DOING" . "DarkOrchid")
("BLOCKED" . "Firebrick")
("REVIEW" . "Teal")
("DONE" . "ForestGreen")
("ARCHIVED" . "SlateBlue"))))
;; Set TODO keyword faces if over-ridden by theme.
(defun practicalli/set-todo-keyword-faces ()
(interactive)
(setq hl-todo-keyword-faces
'(("TODO" . "SlateGray")
("DOING" . "DarkOrchid")
("BLOCKED" . "Firebrick")
("REVIEW" . "Teal")
("DONE" . "ForestGreen")
("ARCHIVED" . "SlateBlue"))))
;; ---------------------------------------
;; ---------------------------------------
;; customize org-mode's checkboxes with unicode symbols
(add-hook
'org-mode-hook
(lambda ()
"Beautify Org Checkbox Symbol"
(push '("[ ]" . "☐") prettify-symbols-alist)
(push '("[X]" . "☑" ) prettify-symbols-alist)
(push '("[-]" . "❍" ) prettify-symbols-alist)
(prettify-symbols-mode)))
;; ---------------------------------------