Re: [O] Templates for cloning

2012-08-08 Thread Sebastian Fischmeister
The comment about swapping lines and getting a nicer version was intended for the orgmode devs, just in case they want an easy way to support templates with minimal changes to the source code. My solution also works. Just copy the elisp definitions for org-p and org-g into your .emacs file. Then d

Re: [O] Templates for cloning

2012-08-05 Thread Nathan Neff
On Fri, Aug 3, 2012 at 9:40 PM, Sebastian Fischmeister wrote: > As an idea, this is how I use templates: > > %+begin_src > (defun org-p (key) > (let ((val (read-from-minibuffer (concat "Define " key ": " > (plist-put org-store-link-plist >(intern (concat ":" key)) val)) >

Re: [O] Templates for cloning

2012-08-03 Thread Sebastian Fischmeister
As an idea, this is how I use templates: %+begin_src (defun org-p (key) (let ((val (read-from-minibuffer (concat "Define " key ": " (plist-put org-store-link-plist (intern (concat ":" key)) val)) "" ) (defmacro org-g (key) (or (plist-get org-store-link-plist (int

Re: [O] Templates for cloning

2012-08-03 Thread Bastien
Hi Nathan, Nathan Neff writes: > Is there a way to create a template structure for cloning? This is something I've wanted for long, and I hope I'll find the time to implement it after 7.9. More precisely, I want something that captures the structure of the subtree at point (with all elements)

[O] Templates for cloning

2012-08-02 Thread Nathan Neff
Hi all, Is there a way to create a template structure for cloning? The main purpose would be to create a shell or structure that is easy to replicate, such as a workflow, etc. This shell, etc would not need any hard-coded dates, but could simply have offsets for sub-items whose due-dates or star