summary refs log tree commit diff
path: root/emacs.d/lib/org-settings.el
blob: ba675036bf19afc97c31609f17f8b4bdf45bcea1 (plain) (blame)
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
(use-package org-mode
  :bind (("C-c a" . org-agenda)
         ("C-c c" . org-capture)
         ("C-c o" . org-iswitchb))

  :config
  (progn
    (setq org-startup-indented t
          org-indent-mode t
          org-return-follows-link t
          org-blank-before-new-entry nil)))

(setq org-todo-keywords
      '((sequence "TODO" "IN-PROGRESS" "WAITING" "DONE")))

(setq org-link-abbrev-alist
      '(("src" . "~/src/%s")
        ("jira" . "https://jira.twitter.biz/browse/%s")
        ("rb" . "https://reviewboard.twitter.biz/r/%s")
        ("go" . "http://go/%s")))

(setq org-default-notes-file "~/src/notes/org/inbox.org")

(setq org-agenda-files (list "~/src/notes/org/personal.org"
                             "~/src/notes/org/work.org"
                             "~/src/notes/org/inbox.org"))

;; org-startup-indented
(add-hook 'org-mode-hook (lambda () (setq truncate-lines nil)))

(setq org-capture-templates
      '(("t" "Todo" entry (file+headline "~/src/notes/org/inbox.org" "Tasks")
         "* TODO %?\n%a")
        ("j" "Journal" entry (file+datetree "~/src/notes/org/journal.org")
         "* %T\n%?")
        ("m" "Meeting" entry (file+headline "~/src/notes/org/inbox.org" "Meetings")
         "* %^{prompt} %U\n%?")))

(setq org-refile-targets
      '(("~/src/notes/org/work.org" :maxlevel . 2)
        ("~/src/notes/org/personal.org" :maxlevel . 2)))

(provide 'org-settings)