On 28/12/2025 3:34 am, pinmacs wrote:
As I was saying, I am a heavy user of emacs lisp defined variables in org-capture-templates so whatever is needed to give space to introduce them more gracefully, I support it.

Do you really need `org-capture' feature or something like the following may be an alternative?

stardiviner to emacs-devel. [Feature Request] Can Emacs add format function `format-f-string` like f-string in Python3? Wed, 21 May 2025 09:32:54 +0800.
<https://yhetil.org/emacs-devel/CAL1eYuJPqsjkOvhjyVBpYmaP0VoymNw5XRQvmNFND=8pe4p...@mail.gmail.com/>

As to org-capture templates, when I tried elisp expression first time, I needed namely function, so "%(...)" looks rather natural for me as function call or forms like "(if ...)". I do not expect consistency from this quite specific DSL.

From my point of view, a couple of helper functions with short names and scope limited to templates may be considered, e.g. "%(var default-directory)" and "%(svar 10)". The latter forces conversion to string.

Reply via email to