diff options
| author | Raul Benencia <id@rbenencia.name> | 2022-07-29 08:04:36 -0700 | 
|---|---|---|
| committer | Raul Benencia <id@rbenencia.name> | 2022-07-29 08:04:36 -0700 | 
| commit | ceed9fa8c86883a1d3e3e02bcba2f0e49aa5af8b (patch) | |
| tree | a3a0779401117bbdddb61990667c6eab0c2fabd9 /.emacs.local.d/modes | |
| parent | cfbd91ac9937cb7e621a557fc5fb5c75d7e71e88 (diff) | |
emacs: simplify org-capture
Diffstat (limited to '.emacs.local.d/modes')
| -rw-r--r-- | .emacs.local.d/modes/org.el | 25 | 
1 files changed, 10 insertions, 15 deletions
| diff --git a/.emacs.local.d/modes/org.el b/.emacs.local.d/modes/org.el index 7d9ef94..e278230 100644 --- a/.emacs.local.d/modes/org.el +++ b/.emacs.local.d/modes/org.el @@ -61,25 +61,20 @@  ;; I use C-c c to start capture mode  (global-set-key (kbd "C-c c") 'org-capture) -;; Capture templates for: TODO tasks, Notes, appointments, phone calls, meetings, and org-protocol  (setq org-capture-templates -      (quote (("t" "todo" entry (file my-org-refile-path) -               "* TODO %?\n%U\n%a\n" :clock-in t :clock-resume t) -              ("r" "respond" entry (file my-org-refile-path) -               "* NEXT Respond to %:from on %:subject\nSCHEDULED: %t\n%U\n%a\n" :clock-in t :clock-resume t :immediate-finish t) -              ("n" "note" entry (file my-org-refile-path) -               "* %? :NOTE:\n%U\n%a\n" :clock-in t :clock-resume t) -              ("w" "org-protocol" entry (file my-org-refile-path) -               "* TODO Review %c\n%U\n" :immediate-finish t) -              ("m" "Meeting" entry (file my-org-refile-path) -               "* MEETING with %? :MEETING:\n%U" :clock-in t :clock-resume t) -              ("p" "Phone call" entry (file my-org-refile-path) -               "* PHONE %? :PHONE:\n%U" :clock-in t :clock-resume t) -              ("h" "Habit" entry (file my-org-refile-path) -               "* NEXT %?\n%U\n%a\nSCHEDULED: %(format-time-string \"%<<%Y-%m-%d %a .+1d/3d>>\")\n:PROPERTIES:\n:STYLE: habit\n:REPEAT_TO_STATE: NEXT\n:END:\n")))) +      (quote +       ( +        ("w" "Todo" entry (file+headline my-org-refile-path "Tasks") +         "* TODO " +         :empty-lines 1) +        ("m" "Mail" entry (file+headline my-org-refile-path "Incoming") +         "* TODO %^{Title}\n\n  Source: %u, %c\n\n  %i" +         :empty-lines 1) +        )))  (add-hook 'org-capture-mode-hook 'delete-other-windows)  (setq my-org-protocol-flag nil) +  (defadvice org-capture-finalize (after delete-frame-at-end activate)    "Delete frame at remember finalization"    (progn (if my-org-protocol-flag (delete-frame)) | 
