emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] DOCT integration: template specific hooks [9.5.5 (9.5.5-g003


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.

Attachment: 0001-org-capture-Add-template-hook-properties.patch
Description: single-or-list-of-fns


reply via email to

[Prev in Thread] Current Thread [Next in Thread]