diff options
Diffstat (limited to '')
-rw-r--r-- | emacs.d/lib/org-settings.el | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/emacs.d/lib/org-settings.el b/emacs.d/lib/org-settings.el new file mode 100644 index 0000000..ba67503 --- /dev/null +++ b/emacs.d/lib/org-settings.el @@ -0,0 +1,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) |