|
| From: | No Wayman |
| Subject: | Re: [PATCH] DOCT integration: template specific hooks [9.5.5 (9.5.5-g003cc7 @ /home/n/.emacs.d/elpaca/builds/org/)] |
| Date: | Tue, 27 Sep 2022 16:56:45 -0400 |
| User-agent: | mu4e 1.9.0; emacs 29.0.50 |
On second thought, I'd prefer the keywords to allow a single function or a list of functions. This prevents breakage with current DOCT syntax and is cleaner IMO. e.g.
#+begin_srce emacs-lisp :lexical t
(let ((org-capture-templates
'(("t" "test" plain (file "/tmp/test.org") "test %?"
:hook (lambda () (insert "PASS"))))))
(org-capture nil "t"))
#+end_src
See attached patch.
0001-org-capture-Add-template-hook-properties.patch
Description: single-or-list-of-fns
| [Prev in Thread] | Current Thread | [Next in Thread] |