From: Xebar Saram <zeltakc@gmail.com>
To: org mode <emacs-orgmode@gnu.org>
Subject: using org-global-properties in capture templates
Date: Sat, 28 Oct 2017 09:05:49 +0300 [thread overview]
Message-ID: <CAOQHXPqRQVE=1zsoYo2nYa4_fWCagMEAPdTiBVaBrh3Q_4pSuA@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 1321 bytes --]
Hi all
so i just discovered today the org-global-properties
im still strugling to understand how to use it in a capture template
currently i use the %^{prompt} option to quick select from a list of items
as following
(add-to-list 'org-capture-templates
'("ff" "Food"
entry
(file+headline (lambda () (concat pmm "/org/files/agenda/food.org"))
"Inbox")
"* COOK %^{Recipe Name}
:PROPERTIES:
:ID: %(org-id-uuid)
:Time: %^{minutes|-|10|15|30|60}
:END:
"
"Capture Template for food recipe"
))
i have many of these captures and if i change 1 property i need to change
all capture templates. from what i understand the org-global-properties
will allow me to define it once and use it in all capture templates. yet i
cant understand how.
following the manual i tried this
;; Effort and global properties
(setq org-global-properties '(("Effort_ALL". "0 0:10 0:20 0:30 1:00 2:00
3:00 4:00 6:00 8:00")))
(add-to-list 'org-capture-templates
'("f" "Food"
entry
(file+headline (lambda () (concat pmm "/org/files/agenda/food.org"))
"Inbox")
"* COOK %^{Recipe Name}
:PROPERTIES:
:ID: %(org-id-uuid)
:Effort_ALL: %^{Effort_ALL}p
:END:
"
"Capture Template for food recipe"
))
yet when i get to the Effort_ALL part it dosent prompt me for options. i
assume im doing it wrong. can anyone point me in the right direction?
thx
Z
[-- Attachment #2: Type: text/html, Size: 2155 bytes --]
next reply other threads:[~2017-10-28 6:05 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-10-28 6:05 Xebar Saram [this message]
2017-10-28 9:37 ` using org-global-properties in capture templates Nicolas Goaziou
2017-10-28 18:44 ` Xebar Saram
2017-10-31 15:18 ` Xebar Saram
2017-11-04 15:31 ` Xebar Saram
2017-11-22 9:52 ` Xebar Saram
2017-12-03 1:28 ` Adrian Bradd
2017-12-03 12:53 ` Xebar Saram
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAOQHXPqRQVE=1zsoYo2nYa4_fWCagMEAPdTiBVaBrh3Q_4pSuA@mail.gmail.com' \
--to=zeltakc@gmail.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).