|
From: | Nick Dokos |
Subject: | Re: [O] check if properties drawer exists before creating or manipulating? |
Date: | Thu, 31 Oct 2013 11:34:59 -0400 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) |
Matt Price <address@hidden> writes: > (still trying to set properties automatically when a minor-mode is > set, see first message in thread) > > Is there a simple way to check if the properties drawer exists before > creating one? > I'm trying to add a hook to org-insert-heading-hook that will create a > property drawer if one doesn't exist; I don't want to create a bunch > of independent properties drawers. > Why can't you set properties directly with org-set-property? It'll create the drawer if it does not exist and reuse the existing drawer if it does. Nick
[Prev in Thread] | Current Thread | [Next in Thread] |