Browse Source

expanded home org captures

master
Marc Pohling 6 years ago
parent
commit
2dcc6e4a16
1 changed files with 7 additions and 1 deletions
  1. 8
      config.org

8
config.org

@ -851,13 +851,19 @@ Org overwrites RET and C-j, so I need to disable the rebinds
#+END_SRC #+END_SRC
*** Org Capture *** Org Capture
The basic format is:
hotkey - name - type - location - content
For todos a prompt for the title is demanded. This made it possible to place the cursor for the content to the right position. Just typing, C-c C-c, done!
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(pcase my/whoami (pcase my/whoami
("home" ("home"
(setq org-capture-templates (setq org-capture-templates
`(("n" "note" entry (org-default-notes-file)) `(("n" "note" entry (org-default-notes-file))
("t" "todo" entry (file+headline ,(concat PATH_ORG_FILES "tasks.org") "Tasks")
"* TODO %^{Title}\n %u\n %?\n")
("c" "coding todo" entry (file+headline ,(concat PATH_ORG_FILES "tasks.org") "Tasks") ("c" "coding todo" entry (file+headline ,(concat PATH_ORG_FILES "tasks.org") "Tasks")
"* TODO %?\n %i\n\n"))))
"* TODO %^{Title}\n %u %a\n %?\n"))))
("work_remote" ("work_remote"
(setq org-capture-templates (setq org-capture-templates
'(("t" "todo" entry (file (concat PATH_ORG_FILES "todo.org")) '(("t" "todo" entry (file (concat PATH_ORG_FILES "todo.org"))

Loading…
Cancel
Save