emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] using org-global-properties in capture templates


From: Nicolas Goaziou
Subject: Re: [O] using org-global-properties in capture templates
Date: Sat, 28 Oct 2017 11:37:58 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux)

Hello,

Xebar Saram <address@hidden> 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]