From: Mike McLean <mike.mclean@pobox.com>
To: Rasmus <rasmus@gmx.us>
Cc: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Re: file or headline-local template for new subtree?
Date: Tue, 14 Jul 2015 21:27:24 -0400 [thread overview]
Message-ID: <CANid5Q43kK3Qfb6PxqYgxUDpmU=pOS9YYLVMZZuCFZC9Kmjn9g@mail.gmail.com> (raw)
In-Reply-To: <874ml6mnn4.fsf@gmx.us>
[-- 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 --]
prev parent reply other threads:[~2015-07-15 1:27 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CANid5Q43kK3Qfb6PxqYgxUDpmU=pOS9YYLVMZZuCFZC9Kmjn9g@mail.gmail.com' \
--to=mike.mclean@pobox.com \
--cc=emacs-orgmode@gnu.org \
--cc=rasmus@gmx.us \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).