diff options
author | Ricardo Wurmus <rekado@elephly.net> | 2023-09-08 11:20:00 +0200 |
---|---|---|
committer | Ricardo Wurmus <rekado@elephly.net> | 2023-09-08 11:20:00 +0200 |
commit | 0daea4e48ecc1969bfa80667231308b3b325b5ce (patch) | |
tree | 9f7bddcfb12731f87d4c3260e143739b1f18f6f9 | |
parent | c693c2132cfef75d3d567073239ef483c353a18f (diff) |
Add org capture inbox, and record tasks in inbox.org.
-rw-r--r-- | init.org | 20 |
1 files changed, 15 insertions, 5 deletions
@@ -471,12 +471,22 @@ I use the capture feature to quickly record ideas and tasks, and to create links #+BEGIN_SRC elisp (global-set-key (kbd "C-c o c") 'org-capture) (setq org-capture-templates - '(("t" "Task" entry - (file+headline (concat org-directory "/home.org") "Tasks") - "* %?\n %i\n %a") + `(("i" "Inbox" entry + (file ,(concat org-directory "/inbox.org")) + ,(concat "* TODO %?\n" "/Entered on/ %U")) + ("t" "Task" entry + (file+headline (concat org-directory "/inbox.org") "Tasks") + "* %?\n %i\n %a") ("m" "Email" entry - (file+headline (concat org-directory "/email.org") "Email") - "* Reply to %:fromname%? :email:\n [%:date]\n To: %:to\n %a"))) + (file+headline (concat org-directory "/email.org") "Email") + "* Reply to %:fromname%? :email:\n [%:date]\n To: %:to\n %a"))) + +(defun org-capture-inbox () + (interactive) + (call-interactively 'org-store-link) + (org-capture nil "i")) + +(define-key global-map (kbd "C-c i") 'org-capture-inbox) #+END_SRC For exporting org documents to PDF I use =lualatex= instead of the default =pdflatex=. I also use =biber= to refresh the bibliography. This requires me to change the value of =org-latex-pdf-process=. |