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