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