From 962948de4828569427477336320f521fd62f4532 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Thu, 18 Apr 2019 17:10:39 -0700 Subject: [emacs] add a few more templates to org-mode. --- emacs.d/custom/fcuny-org.el | 35 ++++++++++++++++++++++++++++------- 1 file changed, 28 insertions(+), 7 deletions(-) diff --git a/emacs.d/custom/fcuny-org.el b/emacs.d/custom/fcuny-org.el index 8b47fa0..fd7dc0c 100644 --- a/emacs.d/custom/fcuny-org.el +++ b/emacs.d/custom/fcuny-org.el @@ -2,23 +2,44 @@ :ensure t :hook ((org-mode . visual-line-mode) (org-mode . org-indent-mode)) + :bind (("C-c c" . org-capture) + ("C-c a" . org-agenda)) :custom (org-startup-indented t) - (org-directory "~/GDrive/notebooks") + (org-directory "~/Documents/notebooks") (org-default-notes-file (concat org-directory "/inbox.org")) (org-agenda-start-on-weekday 1) + (org-tags-column -120) + (org-link-abbrev-alist + '(("src" . "~/workspace/%s") + ("jira" . "https://jira.twitter.biz/browse/%s") + ("ph" . "https://phabricator.twitter.biz/%s") + ("go" . "http://go/%s"))) + (org-todo-keywoards + '((sequence "TODO(t)" "WAIT(w@/!)" "|" "Done(d!)" "Cancelled(c@)" "Someday(s)"))) (org-capture-templates - (quote (("t" "Todo" entry - (file+headline "~/GDrive/notebooks/personal/todo.org" "New") + (quote (("b" "Bookmark" entry + (file+headline "~/Documents/notebooks/notes.org" "Bookmark") + "* TODO %?\n%i\n:PROPERTIES:\n:CREATED: %U\n:END:\n") + ("r" "Reference" entry + (file+headline "~/Documents/notebooks/notes.org" "Reference") + "* %?\n%i\n:PROPERTIES:\n:CREATED: %U\n:END:\n") + ("e" "Event" entry + (file+headline "~/Documents/notebooks/notes.org" "Event") + "* %?\n:PROPERTIES:\n:CREATED: %U\n:END:\n") + ("t" "Todo" entry + (file+headline "~/Documents/notebooks/personal/todo.org" "New") "* TODO %?\n") ("T" "Work Todo" entry - (file+headline "~/GDrive/notebooks/twitter/todo.org" "New") + (file+headline "~/Documents/notebooks/twitter/todo.org" "New") "* TODO %?\n") ("d" "Diary" entry - (file+olp+datetree "~/GDrive/notebooks/personal/diary.org") + (file+olp+datetree "~/Documents/notebooks/personal/diary.org") "* %U %?\n" :tree-type week) ("D" "Work Diary" entry - (file+olp+datetree "~/GDrive/notebooks/twitter/diary.org") - "* %U %?\n" :tree-type week))))) + (file+olp+datetree "~/Documents/notebooks/twitter/diary.org") + "* %U %?\n" :tree-type week) + ("I" "inbox, refile later" entry (file "~/Documents/notebooks/inbox.org") + "\n* %?\n:PROPERTIES:\n:CREATED: %U\n:END:\n"))))) (provide 'fcuny-org) -- cgit 1.4.1