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