* file or headline-local template for new subtree?
@ 2015-07-14 21:00 Matt Price
2015-07-14 21:31 ` Rasmus
0 siblings, 1 reply; 3+ messages in thread
From: Matt Price @ 2015-07-14 21:00 UTC (permalink / raw
To: Org Mode
[-- Attachment #1: Type: text/plain, Size: 349 bytes --]
I have this new system, in which I create a new subtree for every paper I
grade. I'd love to have the new subtree automatically populated by a
mostly-empty table on cration. Is this something I can do on a per-file
basis; or perhaps even something I can change with every level 1 heading?
I can think of a couple uses for this, actually.
Thx,
matt
[-- Attachment #2: Type: text/html, Size: 416 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: file or headline-local template for new subtree?
2015-07-14 21:00 file or headline-local template for new subtree? Matt Price
@ 2015-07-14 21:31 ` Rasmus
2015-07-15 1:27 ` Mike McLean
0 siblings, 1 reply; 3+ messages in thread
From: Rasmus @ 2015-07-14 21:31 UTC (permalink / raw
To: emacs-orgmode
Matt Price <moptop99@gmail.com> writes:
> I have this new system, in which I create a new subtree for every paper I
> grade. I'd love to have the new subtree automatically populated by a
> mostly-empty table on cration. Is this something I can do on a per-file
> basis; or perhaps even something I can change with every level 1 heading?
> I can think of a couple uses for this, actually.
I'm fond of org-structure-template-alist, but it might not be powerful
enough for what you want here. On a per file basis you could bind some
letter in org-structure-template-alist. ATM it cannot guess how to insert
a subtree. But there's org-insert-subheading.
Rasmus
--
El Rey ha muerto. ¡Larga vida al Rey!
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: file or headline-local template for new subtree?
2015-07-14 21:31 ` Rasmus
@ 2015-07-15 1:27 ` Mike McLean
0 siblings, 0 replies; 3+ messages in thread
From: Mike McLean @ 2015-07-15 1:27 UTC (permalink / raw
To: Rasmus; +Cc: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 1654 bytes --]
On Tue, Jul 14, 2015 at 5:31 PM, Rasmus <rasmus@gmx.us> wrote:
> Matt Price <moptop99@gmail.com> writes:
>
> > I have this new system, in which I create a new subtree for every paper I
> > grade. I'd love to have the new subtree automatically populated by a
> > mostly-empty table on cration. Is this something I can do on a per-file
> > basis; or perhaps even something I can change with every level 1 heading?
> > I can think of a couple uses for this, actually.
>
> I'm fond of org-structure-template-alist, but it might not be powerful
> enough for what you want here. On a per file basis you could bind some
> letter in org-structure-template-alist. ATM it cannot guess how to insert
> a subtree. But there's org-insert-subheading.
>
Something I do alot of is have Org Capture templates as files. This lets me
write a more complex capture template (in my case for one of several
“roles” that I take on ad-hoc but recurring basis during meetings).
I call the template with an entry like the following in
org-capture-templates.
("Mg" "Grammarian"
entry
(file+headline "~/Documents/OrgMaster/org/Toastmasters.org" "Miscellaneous
and Non-Goal roles 2015")
(file "~/.init/emacs/org-capture-templates/grammarian.org_template")
:jump-to-captured t :immediate-finish t)
In this specific case, it places the entry under a special pre-defined Org
heading, but I could always call org-capture with a `C-0' (zero) prefix to
insert a template at point.
I can edit the template file as things change, and it can be pretty complex
(some of my represent Projects: A header, several sub headers as tasks,
etc.).
[-- Attachment #2: Type: text/html, Size: 2366 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-07-15 1:27 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-14 21:00 file or headline-local template for new subtree? Matt Price
2015-07-14 21:31 ` Rasmus
2015-07-15 1:27 ` Mike McLean
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.