From mboxrd@z Thu Jan 1 00:00:00 1970 From: Xebar Saram Subject: using org-global-properties in capture templates Date: Sat, 28 Oct 2017 09:05:49 +0300 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="001a114695fc71c059055c953221" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51567) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e8KFk-0001KI-Mz for emacs-orgmode@gnu.org; Sat, 28 Oct 2017 02:05:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e8KFj-0006sA-Im for emacs-orgmode@gnu.org; Sat, 28 Oct 2017 02:05:52 -0400 Received: from mail-wm0-x232.google.com ([2a00:1450:400c:c09::232]:43476) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e8KFj-0006pg-BL for emacs-orgmode@gnu.org; Sat, 28 Oct 2017 02:05:51 -0400 Received: by mail-wm0-x232.google.com with SMTP id m72so4669755wmc.0 for ; Fri, 27 Oct 2017 23:05:50 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: org mode --001a114695fc71c059055c953221 Content-Type: text/plain; charset="UTF-8" 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 --001a114695fc71c059055c953221 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi all

so i just discovered today the= =C2=A0org-global-properties

im still strugling to = understand how to use it in a capture template

cur= rently i use the=C2=A0%^{prompt}=C2=A0 option to quick select from a list o= f items as following

(add-to-list 'org-ca= pture-templates
'("ff" "Food"
e= ntry
(file+headline (lambda () (concat pmm "/org/files/agend= a/food.org")) "Inbox")
=
"* COOK %^{Recipe Name}=C2=A0 =C2=A0 =C2=A0=C2=A0
:PROP= ERTIES:
:ID: %(org-id-uuid)
:Time: %^{minutes|-|10|15|3= 0|60}
:END:
"
"Capture Temp= late for food recipe"
))

i ha= ve many of these captures and if i change 1 property i need to change all c= apture templates. from what i understand the=C2=A0org-global-properties wil= l allow me to define it once and use it in all capture templates. yet i can= t understand how.

following the manual i tried thi= s

;; 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")))


<= /div>

(add-to-list 'org-capture-templates
= '("f" "Food"
entry
(file+headli= ne (lambda () (concat pmm "/org/files/agenda/food.org")) "Inbox")
"* COOK %^{Recipe= Name}=C2=A0 =C2=A0 =C2=A0=C2=A0
:PROPERTIES:
:ID: %(or= g-id-uuid)
:Effort_ALL: %^{Effort_ALL}p=C2=A0
:END:
"
"Capture Template for food recipe"
<= div>))


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<= /div>

Z
--001a114695fc71c059055c953221-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: using org-global-properties in capture templates Date: Sat, 28 Oct 2017 11:37:58 +0200 Message-ID: <8760azy5mx.fsf@nicolasgoaziou.fr> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58095) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e8NZ4-000840-Tb for emacs-orgmode@gnu.org; Sat, 28 Oct 2017 05:38:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e8NZ4-0007Th-2N for emacs-orgmode@gnu.org; Sat, 28 Oct 2017 05:38:02 -0400 Received: from relay2-d.mail.gandi.net ([2001:4b98:c:538::194]:52035) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1e8NZ3-0007S1-Ra for emacs-orgmode@gnu.org; Sat, 28 Oct 2017 05:38:01 -0400 In-Reply-To: (Xebar Saram's message of "Sat, 28 Oct 2017 09:05:49 +0300") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Xebar Saram Cc: org mode Hello, Xebar Saram 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 From mboxrd@z Thu Jan 1 00:00:00 1970 From: Xebar Saram Subject: Re: using org-global-properties in capture templates Date: Sat, 28 Oct 2017 21:44:02 +0300 Message-ID: References: <8760azy5mx.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="94eb2c1b4210094532055c9fca6f" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58878) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e8W5V-0000T6-Dz for emacs-orgmode@gnu.org; Sat, 28 Oct 2017 14:44:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e8W5U-0007ww-2G for emacs-orgmode@gnu.org; Sat, 28 Oct 2017 14:44:05 -0400 Received: from mail-wr0-x229.google.com ([2a00:1450:400c:c0c::229]:51440) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e8W5T-0007w8-RG for emacs-orgmode@gnu.org; Sat, 28 Oct 2017 14:44:04 -0400 Received: by mail-wr0-x229.google.com with SMTP id j15so8835134wre.8 for ; Sat, 28 Oct 2017 11:44:03 -0700 (PDT) In-Reply-To: <8760azy5mx.fsf@nicolasgoaziou.fr> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Nicolas Goaziou Cc: org mode --94eb2c1b4210094532055c9fca6f Content-Type: text/plain; charset="UTF-8" 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 wrote: > Hello, > > Xebar Saram 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 > --94eb2c1b4210094532055c9fca6f Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
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 Am= erican EastEuro Mexican French Persian Austrian Greek Fusion")))
=
(add-to-list 'org-global-properties '(("Rating_ALL".= "- 1 2 3 4 5")))

i assume my synt= ax 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&= gt; writes:

> ;; Effort and global properties
> (setq org-global-properties '(("Effort_ALL". "0 0:1= 0 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 fo= r "XYZ". In
you case, you will get completion for "Effort" with:

=C2=A0 :Effort: %^{Effort}p


Regards,

--
Nicolas Goaziou

--94eb2c1b4210094532055c9fca6f-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Xebar Saram Subject: Re: using org-global-properties in capture templates Date: Tue, 31 Oct 2017 17:18:52 +0200 Message-ID: References: <8760azy5mx.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="001a114695fcda52da055cd94538" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38528) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e9YJf-0008IJ-A1 for emacs-orgmode@gnu.org; Tue, 31 Oct 2017 11:19:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e9YJa-0008B2-Dw for emacs-orgmode@gnu.org; Tue, 31 Oct 2017 11:18:59 -0400 Received: from mail-wm0-x22b.google.com ([2a00:1450:400c:c09::22b]:46907) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e9YJa-0008Ar-3i for emacs-orgmode@gnu.org; Tue, 31 Oct 2017 11:18:54 -0400 Received: by mail-wm0-x22b.google.com with SMTP id m72so23369487wmc.1 for ; Tue, 31 Oct 2017 08:18:54 -0700 (PDT) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Nicolas Goaziou Cc: org mode --001a114695fcda52da055cd94538 Content-Type: text/plain; charset="UTF-8" hi again cant get to figure this out. any help would be really appreciated! best Z On Sat, Oct 28, 2017 at 9:44 PM, Xebar Saram 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 > wrote: > >> Hello, >> >> Xebar Saram 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 >> > > --001a114695fcda52da055cd94538 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
hi again

cant get to figure this out. a= ny help would be really appreciated!

best

Z

On Sat, Oct 28, 2017 at 9:44 PM, Xebar Saram <zeltakc@gmail.c= om> 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 compl= etion for the second one.
this is what i used

(setq org-global-properties '(("Cuisine_ALL". &quo= t;- Indian Thai Vietnamese Asian Chinese Israeli Italian American EastEuro = Mexican French Persian Austrian Greek Fusion")))
(add-to-lis= t '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:
H= ello,

Xebar Saram <zelt= akc@gmail.com> writes:

> ;; Effort and global properties
> (setq org-global-properties '(("Effort_ALL". "0 0:1= 0 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 fo= r "XYZ". In
you case, you will get completion for "Effort" with:

=C2=A0 :Effort: %^{Effort}p


Regards,

--
Nicolas Goaziou


--001a114695fcda52da055cd94538-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Xebar Saram Subject: Re: using org-global-properties in capture templates Date: Sat, 4 Nov 2017 17:31:18 +0200 Message-ID: References: <8760azy5mx.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="94eb2c0723a6b1b90f055d29e906" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48616) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eB0Pq-0003fZ-8j for emacs-orgmode@gnu.org; Sat, 04 Nov 2017 11:31:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eB0Pp-0007yS-0Q for emacs-orgmode@gnu.org; Sat, 04 Nov 2017 11:31:22 -0400 Received: from mail-wm0-x22d.google.com ([2a00:1450:400c:c09::22d]:54423) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eB0Po-0007xe-Ls for emacs-orgmode@gnu.org; Sat, 04 Nov 2017 11:31:20 -0400 Received: by mail-wm0-x22d.google.com with SMTP id r68so6689105wmr.3 for ; Sat, 04 Nov 2017 08:31:20 -0700 (PDT) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Nicolas Goaziou Cc: org mode --94eb2c0723a6b1b90f055d29e906 Content-Type: text/plain; charset="UTF-8" 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 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 > wrote: > >> Hello, >> >> Xebar Saram 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 >> > > --94eb2c0723a6b1b90f055d29e906 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
sorry to bother again but still stuck with this....
i tried to add another org-global-property entry (i assume tha= ts possible) but then i didnt get completion for the second one.
this i= s what i used

(setq org-global-properties '((&= quot;Cuisine_ALL". "- Indian Thai Vietnamese Asian Chinese Israel= i Italian American EastEuro Mexican French Persian Austrian Greek Fusion&qu= ot;)))
(add-to-list 'org-global-properties '(("Ratin= g_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 or= g-global-property entry (i assume thats possible) but then i didnt get comp= letion for the second one.
this is what i used

(setq org-global-properties '(("Cuisine_ALL". &qu= ot;- Indian Thai Vietnamese Asian Chinese Israeli Italian American EastEuro= Mexican French Persian Austrian Greek Fusion")))
(add-to-li= st '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 <ma= il@nicolasgoaziou.fr> wrote:
zelt= akc@gmail.com> writes:

> ;; Effort and global properties
> (setq org-global-properties '(("Effort_ALL". "0 0:1= 0 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 fo= r "XYZ". In
you case, you will get completion for "Effort" with:

=C2=A0 :Effort: %^{Effort}p


Regards,

--
Nicolas Goaziou


--94eb2c0723a6b1b90f055d29e906-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Xebar Saram Subject: Re: using org-global-properties in capture templates Date: Wed, 22 Nov 2017 11:52:53 +0200 Message-ID: References: <8760azy5mx.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="f403045f1d628dd085055e8f48cd" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53724) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eHRiD-0007wN-2f for emacs-orgmode@gnu.org; Wed, 22 Nov 2017 04:52:58 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eHRiB-0008T8-Ty for emacs-orgmode@gnu.org; Wed, 22 Nov 2017 04:52:57 -0500 Received: from mail-wr0-x229.google.com ([2a00:1450:400c:c0c::229]:38920) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eHRiB-0008Sm-Jg for emacs-orgmode@gnu.org; Wed, 22 Nov 2017 04:52:55 -0500 Received: by mail-wr0-x229.google.com with SMTP id 11so10600234wrb.6 for ; Wed, 22 Nov 2017 01:52:55 -0800 (PST) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Nicolas Goaziou Cc: org mode --f403045f1d628dd085055e8f48cd Content-Type: text/plain; charset="UTF-8" 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 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 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 > > wrote: >> >>> Hello, >>> >>> Xebar Saram 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 >>> >> >> > --f403045f1d628dd085055e8f48cd Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi all

sorry to nudge but after spendin= g 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.c= om> wrote:
sorry to bother again but still stuck with this....

i tried to add another org-global-property entry (i assume th= ats 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 Israe= li Italian American EastEuro Mexican French Persian Austrian Greek Fusion&q= uot;)))
(add-to-list 'org-global-properties '(("Rati= ng_ALL". "- 1 2 3 4 5")))

ca= n anyone point me to the correct syntax for adding additional org-global-pr= operties?

thx alot in advance

=
Z


On Sat, Oct 28, 2017 at 9:44 PM, Xeb= ar Saram <zeltakc@gmail.com> wrote:
thx so much
<= br>
that works well. i tried to add another org-global-property e= ntry (i assume thats possible) but then i didnt get completion for the seco= nd one.
this is what i used

(setq o= rg-global-properties '(("Cuisine_ALL". "- Indian Thai Vi= etnamese Asian Chinese Israeli Italian American EastEuro Mexican French Per= sian Austrian Greek Fusion")))
(add-to-list 'org-global-= properties '(("Rating_ALL". "- 1 2 3 4 5")))
<= /div>

i assume my syntax is wrong?

<= div>thx!

Z

On Sat, Oct 28, 2017 at 12:37 PM, Ni= colas Goaziou <mail@nicolasgoaziou.fr> wrote:
Hello,

Xebar Saram <zelt= akc@gmail.com> writes:

> ;; Effort and global properties
> (setq org-global-properties '(("Effort_ALL". "0 0:1= 0 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 fo= r "XYZ". In
you case, you will get completion for "Effort" with:

=C2=A0 :Effort: %^{Effort}p


Regards,

--
Nicolas Goaziou



--f403045f1d628dd085055e8f48cd-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Adrian Bradd Subject: Re: using org-global-properties in capture templates Date: Sat, 2 Dec 2017 20:28:50 -0500 Message-ID: References: <8760azy5mx.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="94eb2c1a373c26aad7055f6586c7" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51380) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eLJ5S-0000It-5C for emacs-orgmode@gnu.org; Sat, 02 Dec 2017 20:28:55 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eLJ5Q-0002Eu-JY for emacs-orgmode@gnu.org; Sat, 02 Dec 2017 20:28:54 -0500 Received: from mail-pl0-x22e.google.com ([2607:f8b0:400e:c01::22e]:34062) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eLJ5Q-0002Eg-9X for emacs-orgmode@gnu.org; Sat, 02 Dec 2017 20:28:52 -0500 Received: by mail-pl0-x22e.google.com with SMTP id d21so8390053pll.1 for ; Sat, 02 Dec 2017 17:28:51 -0800 (PST) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Xebar Saram Cc: org mode , Nicolas Goaziou --94eb2c1a373c26aad7055f6586c7 Content-Type: text/plain; charset="UTF-8" Hello, It looks like you have one too many parenthesis around the Rating entry. org-global properties is supposed to be a list of cons cells. The below should work: #+BEGIN_SRC elisp (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")) #+END_SRC Below is a version that worked for me with all three properties. I declare the properties all in one list instead of adding them. #+BEGIN_SRC elisp (setq org-global-properties '(("Cuisine_ALL". "- Indian Thai Vietnamese Asian Chinese Israeli Italian American EastEuro Mexican French Persian Austrian Greek Fusion") ("Effort_ALL" . "0 0:10 0:20 0:30 1:00 2:00 3:00 4:00 6:00 8:00") ("Rating_ALL" . "- 1 2 3 4 5"))) (setq org-capture-templates '(("f" "Food" entry (file+headline "~/tmp/tmp.org" "Inbox") "* COOK %^{Recipe Name} :PROPERTIES: :ID: %(org-id-uuid) :Time: %^{minutes|-|10|15|30|60} :Effort: %^{Effort}p :Rating: %^{Rating}p :Cuisine: %^{Cuisine}p :END: " "Capture Template for food recipe"))) #+END_SRC HTH, Adrian On 22 November 2017 at 04:52, Xebar Saram wrote: > 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 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 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 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 >>>> >>> >>> >> > --94eb2c1a373c26aad7055f6586c7 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hel= lo,

It looks like you have one too many parenthesis around the Rating entry. org-global properties is supposed to be a list of cons=20 cells. The below should work:

#+BEGIN_SRC elisp
(setq org-global-properties '(("Cuisine_ALL". "- Indian Thai = Vietnamese Asian Chinese Israeli Italian American EastEuro Mexican French Persian=20 Austrian Greek Fusion")))
(add-to-list 'org-global-prope= rties '("Rating_ALL". "- 1 2 3 4 5"))
#+END_SRC<= br>
Below is a version that worked for me with all three properties. I declare=20 the properties all in one list instead of adding them.

#+BEGIN_SRC e= lisp
(setq org-global-properties '(("Cuisine_ALL". "- Indian Thai = Vietnamese Asian Chinese Israeli Italian American EastEuro Mexican French Persian=20 Austrian Greek Fusion") ("Effort_ALL" . "0 0:10 0:20 0:= 30 1:00 2:00 3:00 4:00 6:00 8:00") ("Rating_ALL" . "- 1 2 3 4 5")))=

=C2=A0(setq org-capture-templates
=C2=A0 '(("f" &q= uot;Food"
=C2=A0=C2=A0=C2=A0 entry
=C2=A0=C2=A0=C2=A0 (file+head= line=C2=A0 "~/tmp/tmp.org= " "Inbox")
=C2=A0=C2=A0=C2= =A0 "* COOK %^{Recipe Name}=C2=A0=C2=A0=C2=A0=C2=A0
=C2=A0=C2=A0= =C2=A0 :PROPERTIES:
=C2=A0=C2=A0=C2=A0 :ID: %(org-id-uuid)
=C2=A0=C2=A0=C2=A0 :Time: %^{minutes|-|10|15|30|60}=C2=A0=C2=A0=C2=A0 :Effort: %^{Effort}p
=C2=A0=C2=A0=C2=A0 :Rat= ing: %^{Rating}p
=C2=A0=C2=A0=C2=A0 :Cuisine: %^{Cuisine}p
=C2=A0=C2= =A0=C2=A0 :END:
=C2=A0=C2=A0=C2=A0 "
=C2=A0=C2=A0=C2=A0 "Ca= pture Template for food recipe")))
#+END_SRC

HTH,

Adr= ian

On= 22 November 2017 at 04:52, Xebar Saram <zeltakc@gmail.com> = wrote:
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><= /span> wrote:
sorry to b= other 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 Ea= stEuro Mexican French Persian Austrian Greek Fusion")))
(add= -to-list 'org-global-properties '(("Rating_ALL". "- = 1 2 3 4 5")))

can anyone point me to t= he correct syntax for adding additional org-global-properties?
thx alot in advance

Z

<= /div>

= On Sat, Oct 28, 2017 at 9:44 PM, Xebar Saram <zeltakc@gmail.com&= gt; wrote:
thx so much

that works well. i tried to add another org-global-property entry (i assum= e thats possible) but then i didnt get completion for the second one.
=
this is what i used

(setq org-global-pro= perties '(("Cuisine_ALL". "- Indian Thai Vietnamese Asia= n Chinese Israeli Italian American EastEuro Mexican French Persian Austrian= Greek Fusion")))
(add-to-list 'org-global-properties &#= 39;(("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 <
zelt= akc@gmail.com> writes:

> ;; Effort and global properties
> (setq org-global-properties '(("Effort_ALL". "0 0:1= 0 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 fo= r "XYZ". In
you case, you will get completion for "Effort" with:

=C2=A0 :Effort: %^{Effort}p


Regards,

--
Nicolas Goaziou




--94eb2c1a373c26aad7055f6586c7-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Xebar Saram Subject: Re: using org-global-properties in capture templates Date: Sun, 3 Dec 2017 14:53:43 +0200 Message-ID: References: <8760azy5mx.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="001a1145b9348603a8055f6f1734" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46429) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eLTmF-0007yR-Ov for emacs-orgmode@gnu.org; Sun, 03 Dec 2017 07:53:49 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eLTmE-0004GH-4p for emacs-orgmode@gnu.org; Sun, 03 Dec 2017 07:53:47 -0500 Received: from mail-wm0-x22c.google.com ([2a00:1450:400c:c09::22c]:34770) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eLTmD-0004Ej-RP for emacs-orgmode@gnu.org; Sun, 03 Dec 2017 07:53:46 -0500 Received: by mail-wm0-x22c.google.com with SMTP id y82so11140237wmg.1 for ; Sun, 03 Dec 2017 04:53:45 -0800 (PST) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Adrian Bradd Cc: org mode , Nicolas Goaziou --001a1145b9348603a8055f6f1734 Content-Type: text/plain; charset="UTF-8" Hi thank you Adrian so so much, i hugely appreciate this! this works perfectly now, thx for pointing me in the right direction have a great week! Z On Sun, Dec 3, 2017 at 3:28 AM, Adrian Bradd wrote: > Hello, > > It looks like you have one too many parenthesis around the Rating entry. > org-global properties is supposed to be a list of cons cells. The below > should work: > > #+BEGIN_SRC elisp > (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")) > #+END_SRC > > Below is a version that worked for me with all three properties. I declare > the properties all in one list instead of adding them. > > #+BEGIN_SRC elisp > (setq org-global-properties '(("Cuisine_ALL". "- Indian Thai Vietnamese > Asian Chinese Israeli Italian American EastEuro Mexican French Persian > Austrian Greek Fusion") ("Effort_ALL" . "0 0:10 0:20 0:30 1:00 2:00 3:00 > 4:00 6:00 8:00") ("Rating_ALL" . "- 1 2 3 4 5"))) > > (setq org-capture-templates > '(("f" "Food" > entry > (file+headline "~/tmp/tmp.org" "Inbox") > "* COOK %^{Recipe Name} > :PROPERTIES: > :ID: %(org-id-uuid) > :Time: %^{minutes|-|10|15|30|60} > :Effort: %^{Effort}p > :Rating: %^{Rating}p > :Cuisine: %^{Cuisine}p > :END: > " > "Capture Template for food recipe"))) > #+END_SRC > > HTH, > > Adrian > > On 22 November 2017 at 04:52, Xebar Saram wrote: > >> 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 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 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 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 >>>>> >>>> >>>> >>> >> > --001a1145b9348603a8055f6f1734 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi

thank you Adrian so so much, i hugel= y appreciate this!

this works perfectly now, thx f= or pointing me in the right direction

have a great= week!

Z
On Sun, Dec 3, 2017 at 3:28 AM, Adrian Bradd <adrian.bradd@gmail.com> wrote:
Hello,

It looks like you have one too many pa= renthesis around the Rating entry. org-global properties is supposed to be a list of cons=20 cells. The below should work:

#+BEGIN_SRC elisp

(setq org-global-properties '(("Cuisine_ALL". "- Indian Thai = Vietnamese Asian Chinese Israeli Italian American EastEuro Mexican French Persian=20 Austrian Greek Fusion")))
(add-to-li= st 'org-global-properties '("Rating_ALL". "- 1 2 3 4= 5"))
#+END_SRC

Below is a version that worked for me with all three properties. I declare=20 the properties all in one list instead of adding them.

#+BEGIN_SRC e= lisp
(setq org-global-properties '(("Cuisine_ALL". "- Indian Thai = Vietnamese Asian Chinese Israeli Italian American EastEuro Mexican French Persian=20 Austrian Greek Fusion") ("Effort_ALL" . "0 0:10 0:20 0:= 30 1:00 2:00 3:00 4:00 6:00 8:00") ("Rating_ALL" . "- 1 2 3 4 5")))=

=C2=A0(setq org-capture-templates
=C2=A0 '(("f" &q= uot;Food"
=C2=A0=C2=A0=C2=A0 entry
=C2=A0=C2=A0=C2=A0 (fi= le+headline=C2=A0 "~/tmp/= tmp.org" "Inbox")
=C2=A0=C2=A0=C2=A0 "* COOK %^{Recipe Name}= =C2=A0=C2=A0=C2=A0=C2=A0
=C2=A0=C2=A0=C2=A0 :PROPERTIES:
=C2=A0=C2= =A0=C2=A0 :ID: %(org-id-uuid)
=C2=A0=C2=A0=C2=A0 :Time: %^{minutes|-|1= 0|15|30|60}
=C2=A0=C2=A0=C2=A0 :Effort: %= ^{Effort}p
=C2=A0=C2=A0=C2=A0 :Rating: %^{Rating}p
=C2=A0=C2= =A0=C2=A0 :Cuisine: %^{Cuisine}p
=C2=A0=C2=A0=C2=A0 :END:
=C2=A0=C2= =A0=C2=A0 "
=C2=A0=C2=A0=C2=A0 "Capture Templ= ate for food recipe")))
#+END_SRC

HTH,

Adrian
<= /div>

On 22 November 2017 at 04:52, Xebar Saram <= zeltakc@gmail.com> wrote:
Hi all

sorry to nudge but afte= r 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 appre= ciated!

Z

On Sat, = Nov 4, 2017 at 5:31 PM, Xebar Saram <zeltakc@gmail.com> wrot= e:
sorry to bother again= but still stuck with this....

i tried to add anot= her org-global-property entry (i assume thats possible) but then i didnt ge= t 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 Mexi= can French Persian Austrian Greek Fusion")))
(add-to-list &#= 39;org-global-properties '(("Rating_ALL". "- 1 2 3 4 5&q= uot;)))

can anyone point me to the correct = syntax for adding additional org-global-properties?

thx alot in advance

Z

=

On Sa= t, 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 entr= y (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 Vietn= amese Asian Chinese Israeli Italian American EastEuro Mexican French Persia= n Austrian Greek Fusion")))
(add-to-list 'org-global-pro= perties '(("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 <zelt= akc@gmail.com> writes:

> ;; Effort and global properties
> (setq org-global-properties '(("Effort_ALL". "0 0:1= 0 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 fo= r "XYZ". In
you case, you will get completion for "Effort" with:

=C2=A0 :Effort: %^{Effort}p


Regards,

--
Nicolas Goaziou





--001a1145b9348603a8055f6f1734--