summaryrefslogtreecommitdiff
path: root/org-config.el
blob: 1c961c5b90090e989aeac75ef26778a03cb33464 (plain)
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
; Some workarounds for broken spacemacs.
(autoload 'org-mks "org-macs")
(autoload 'org-show-all "org")
(autoload 'org-line-number-display-width "org-compat")
(autoload 'org-babel-execute:emacs-lisp "ob-emacs-lisp")

(with-eval-after-load 'org
  (org-babel-do-load-languages
   'org-babel-load-languages
   '((emacs-lisp . nil)
     (R . t)))

  (setq
   org-todo-keywords '(
                       (sequence
                        "TODO(t)" "WAIT(w@/!)" "|" "DONE(d!)" "CANCELED(c@)"))

   org-refile-use-outline-path nil
   org-refile-targets '((nil . (:maxlevel . 2)))

   org-agenda-files '("~/org/todo.org")
   org-agenda-ndays 14
   org-agenda-include-diary 1
   ;; org-agenda-todo-ignore-deadlines 1
   org-agenda-todo-ignore-with-date 1
   org-agenda-todo-ignore-scheduled 1
   org-agenda-start-with-log-mode 1

   org-agenda-custom-commands
   '(("g" "Google agenda"
      ((agenda "")
       (alltodo))
      ))

   org-capture-templates `(
                           ("t" "Todo" entry (file+headline "~/org/todo.org" "Inbox")
                            "* TODO %?\n  %i\n  %a")
                           ("d" "Daily review" entry (file+olp+datetree "~/org/review.org" "Daily")
                            (file "~/org/templates/daily-review.org") :tree-type week)
                           )

   )
)