Commit 6674f52c authored by Victor A. Stoichiţă's avatar Victor A. Stoichiţă
Browse files

[org] gtd capture templates

parent 1ee9ab14
......@@ -185,44 +185,30 @@ Returns empty string of no heading at LEVEL."
(setq org-default-notes-file (concat "~/notes/general.org"))
(setq org-capture-templates
'(("e" "Événement" entry (file "~/calendriers/victor.org")
"* %^{Heading} %i %? %^g\n %^t \n")
("t" "Todo" entry (file+headline "~/calendriers/todo.org" "Trucs")
"* TODO [#B] %i %? %^g\n :PROPERTIES:\n :CAPTURED: %U\n :END:\n" :kill-buffer t)
'(;; Events and todos
("e" "Événement" entry (file "~/calendriers/victor.org")
"* %?\n%^t\n:PROPERTIES:\n:CAPTURED: %U\n :END:\n%i" :kill-buffer t)
("f" "Faire" entry (file "~/org/in.org")
"* FAIRE %i%?\n:PROPERTIES:\n:CAPTURED: %U\n:END:\n%i" :kill-buffer t)
("T" "Tickler" entry (file "~/org/tickler.org")
"* FAIRE %?\n%t:PROPERTIES:\n:CAPTURED: %U\n:END:\n%i" :kill-buffer t)
;; Thoughts and references
("i" "Idée" entry (file "~/notes/idees.org")
"** %^{Titre} %^g\n :PROPERTIES:\n :CAPTURED: %U\n :END:\n %i %?" :kill-buffer t)
("r" "Référence" entry (file "~/notes/references.org")
"** %i %^{Titre} %^g\n :PROPERTIES:\n :CAPTURED: %U\n :END:\n %i %?" :kill-buffer t)
("o" "Ordis" entry (file "~/notes/ordis.org")
"** %i %? %^g\n :PROPERTIES:\n :CAPTURED: %U\n :END:\n" :kill-buffer t)
("f" "Facture" entry (file "~/admin/factures.org")
"** %^{Titre} %^g\n :PROPERTIES:\n :CAPTURED: %U\n :END:\n%i%?" :kill-buffer t)
("r" "Références")
("ra ""Anthro" entry (file "~/notes/references_anthro.org")
"* %^{Titre} :anthro:\n:PROPERTIES:\n:CAPTURED: %U\n:END:\n%a\n%i%?" :kill-buffer t)
("ro" "Ordis" entry (file "~/notes/references_ordis.org")
"* %^{Titre} :ordis:\n:PROPERTIES:\n:CAPTURED: %U\n:END:\n%a\n%i%?" :kill-buffer t)
("rg" "Référence générale" entry (file "~/notes/references_general.org")
"* %^{Titre}\n:PROPERTIES:\n:CAPTURED: %U\n:END:\n%a\n%i%?" :kill-buffer t)
("rf" "Facture" entry (file "~/admin/factures.org")
"* %U %^{Titre} %i %?\n %c \n" :kill-buffer t)
;; These will only be shown in mail buffers
("m" "Mail (répondre)" entry (file+olp+datetree "~/calendriers/todo.org" "Trucs")
;; For mu4e. From http://pragmaticemacs.com/emacs/master-your-inbox-with-mu4e-and-org-mode/
"* RÉPONDRE %a :mail:\n SCHEDULED: %(org-insert-time-stamp (org-read-date nil t \"+1d\")) DEADLINE: %(org-insert-time-stamp (org-read-date nil t \"+3d\"))\n" :prepend t :kill-bufer t)
;; Capture under "Capture todo". But really better to refile from capture buffer C-c C-w
("u" "Étudiants" entry (file+headline "~/Etudiants/Etudiants.org" "Capture todo")
"* TODO %a :etudiants:\n :PROPERTIES:\n :CAPTURED: %U\n :END:\n SCHEDULED: %^{Scheduled}t")
;; Capture under "Capture todo". But really better to refile from capture buffer C-c C-w
("n" "Terrain (rubrique) todo" entry (file+headline "~/Terrain/rubrique_terrain.org" "TODO")
"* TODO %a :terrain:\n SCHEDULED: %^{Scheduled}t\n :PROPERTIES:\n :CAPTURED: %U\n :END:\n")
("N" "Terrain (rubrique) Nouveau" entry (file+headline "~/Terrain/rubrique_terrain.org" "En cours")
"* %^{Titre texte} :terrain:
:PROPERTIES:
:AUTEUR_TEXTE: %^{Auteur}
:DIR: %^{Répertoire}
:THREAD: %a
:END:
** LIRE V1 %\\1 (%\\2)
SCHEDULED: %(org-insert-time-stamp (org-read-date nil t \"+5d\"))
:PROPERTIES:
:EXPORT_TITLE: %\\3/%\\1 - avis Victor
:CAPTURED: %U
:END:" :empty-lines-after 1
)))
;; This will only be shown in mail buffers. Goes directly to current projects
("m" "Mail (répondre)" entry (file+headline "~/org/encours.org" "Mail")
"* FAIRE %a :mail:\nSCHEDULED: %(org-insert-time-stamp (org-read-date nil t \"+1d\")) DEADLINE: %(org-insert-time-stamp (org-read-date nil t \"+3d\"))\n" :prepend t :kill-bufer t)))
;; Only show these templates in mail read buffers
(setq org-capture-templates-contexts
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment