* Re: org-capture: question about function to create template
[not found] <mailman.51.1615824031.880.emacs-orgmode@gnu.org>
@ 2021-03-15 16:57 ` No Wayman
2021-03-16 7:17 ` SOLVED: Problems while trying to load feature Ypo
1 sibling, 0 replies; 2+ messages in thread
From: No Wayman @ 2021-03-15 16:57 UTC (permalink / raw)
To: emacs-orgmode; +Cc: emacs-orgmode-request
> From: Joost Kremers <joostkremers@fastmail.fm>
> To: emacs-orgmode@gnu.org
> Subject: org-capture: question about function to create template
> Message-ID: <87eeggh0r5.fsf@fastmail.fm>
> Content-Type: text/plain
>
> Hi list,
>
> I've been looking at the =org-capture= mechanism a bit more
> closely recently and
> noticed that in =org-capture-templates=, the template can also
> be a function.
> This looks like a potentially useful feature, but I was
> wondering if there's any
> way for this function to access the state of the ongoing capture
> process.
The metadata for the template is stored in the `org-capture-plist'
variable.
> Specifically, it would be useful for me if the function can find
> out the key of
> the template that the user selected.
This is stored on the above plist as :key.
There are some corner cases to consider if you have overlapping
capture processes.
You'll want to look into `org-capture-get' and
`org-capture-current-plist' as well.
Depending on your needs you may find DOCT useful:
https://www.github.com/progfolio/doct
^ permalink raw reply [flat|nested] 2+ messages in thread
* SOLVED: Problems while trying to load feature
[not found] <mailman.51.1615824031.880.emacs-orgmode@gnu.org>
2021-03-15 16:57 ` org-capture: question about function to create template No Wayman
@ 2021-03-16 7:17 ` Ypo
1 sibling, 0 replies; 2+ messages in thread
From: Ypo @ 2021-03-16 7:17 UTC (permalink / raw)
To: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 512 bytes --]
Thanks, Nick. SOLVED :-)
El 15/03/2021 a las 17:00, emacs-orgmode-request@gnu.org escribió:
> Message: 30
> Date: Mon, 15 Mar 2021 11:15:29 -0400
> From: Nick Dokos<ndokos@gmail.com>
> To:emacs-orgmode@gnu.org
> Subject: Re: Problems while trying to load feature
> Message-ID:<878s6o8n3i.fsf@alphaville.usersys.redhat.com>
> Content-Type: text/plain
>
> The renaming was e.g org-bbdb to ol-bbdb,*NOT* to ol-org-bbdb.
>
> Similarly for all the rest: you won't find any of them in any installation.
>
> -- Nick
[-- Attachment #2: Type: text/html, Size: 1412 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-03-16 7:16 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <mailman.51.1615824031.880.emacs-orgmode@gnu.org>
2021-03-15 16:57 ` org-capture: question about function to create template No Wayman
2021-03-16 7:17 ` SOLVED: Problems while trying to load feature Ypo
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).