From: Xebar Saram <zeltakc@gmail.com>
To: Nicolas Goaziou <mail@nicolasgoaziou.fr>
Cc: org mode <emacs-orgmode@gnu.org>
Subject: Re: using org-global-properties in capture templates
Date: Wed, 22 Nov 2017 11:52:53 +0200 [thread overview]
Message-ID: <CAOQHXPqJC=EPFoHm9E+FmY9VJib2-3ne2=jqvUrcfH0-ud0Z=A@mail.gmail.com> (raw)
In-Reply-To: <CAOQHXPrrm09F0AwzNaXCbtQS0EoNVNPAQR3=ip7Kgas8vmqD_g@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 2325 bytes --]
Hi all
sorry to nudge but after spending alot of time on this , googling etc cant
seem to get it to work. any help, tips or pointing me in the right
direction would really be appreciated!
Z
On Sat, Nov 4, 2017 at 5:31 PM, Xebar Saram <zeltakc@gmail.com> wrote:
> sorry to bother again but still stuck with this....
>
> i tried to add another org-global-property entry (i assume thats possible)
> but then i didnt get completion for the second one.
> this is what i used
>
> (setq org-global-properties '(("Cuisine_ALL". "- Indian Thai Vietnamese
> Asian Chinese Israeli Italian American EastEuro Mexican French Persian
> Austrian Greek Fusion")))
> (add-to-list 'org-global-properties '(("Rating_ALL". "- 1 2 3 4 5")))
>
> can anyone point me to the correct syntax for adding additional
> org-global-properties?
>
> thx alot in advance
>
> Z
>
>
> On Sat, Oct 28, 2017 at 9:44 PM, Xebar Saram <zeltakc@gmail.com> wrote:
>
>> thx so much
>>
>> that works well. i tried to add another org-global-property entry (i
>> assume thats possible) but then i didnt get completion for the second one.
>> this is what i used
>>
>> (setq org-global-properties '(("Cuisine_ALL". "- Indian Thai Vietnamese
>> Asian Chinese Israeli Italian American EastEuro Mexican French Persian
>> Austrian Greek Fusion")))
>> (add-to-list 'org-global-properties '(("Rating_ALL". "- 1 2 3 4 5")))
>>
>> i assume my syntax is wrong?
>>
>> thx!
>>
>> Z
>>
>> On Sat, Oct 28, 2017 at 12:37 PM, Nicolas Goaziou <mail@nicolasgoaziou.fr
>> > wrote:
>>
>>> Hello,
>>>
>>> Xebar Saram <zeltakc@gmail.com> writes:
>>>
>>> > ;; 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"
>>> > ))
>>>
>>> "XYZ_ALL" is a special property defining allowed values for "XYZ". In
>>> you case, you will get completion for "Effort" with:
>>>
>>> :Effort: %^{Effort}p
>>>
>>>
>>> Regards,
>>>
>>> --
>>> Nicolas Goaziou
>>>
>>
>>
>
[-- Attachment #2: Type: text/html, Size: 4187 bytes --]
next prev parent reply other threads:[~2017-11-22 9:52 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-10-28 6:05 using org-global-properties in capture templates Xebar Saram
2017-10-28 9:37 ` 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 [this message]
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='CAOQHXPqJC=EPFoHm9E+FmY9VJib2-3ne2=jqvUrcfH0-ud0Z=A@mail.gmail.com' \
--to=zeltakc@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=mail@nicolasgoaziou.fr \
/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).