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--