emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Scot Becker <scot.becker@gmail.com>
To: Sebastien Vauban <sva-news@mygooglest.com>
Cc: Org-mode ml <emacs-orgmode@gnu.org>
Subject: Re: Insert a heading in every sibling
Date: Mon, 28 Oct 2013 21:08:19 +0500	[thread overview]
Message-ID: <CAFNfHHxCeWqkTJCNVz+jF4-C3azQMknajk4B=1hEPXBAGU0Sgg@mail.gmail.com> (raw)
In-Reply-To: <868uxd6ao5.fsf@somewhere.org>

[-- Attachment #1: Type: text/plain, Size: 1497 bytes --]

Thanks,  Seb and Marcin.  I didn't know about cloning.  That will do for
those parts of the tree that I know about before I start filling in the
data.  For afterwards, which is more the case I'm thinking about, I'll aim
to write an Elisp function using org-insert-subheading.  That sample macro
gives me something to go on. I'll experiment with keyboard macros, too,
which might be fine for this application.

Thx.



On Mon, Oct 28, 2013 at 1:51 PM, Sebastien Vauban
<sva-news@mygooglest.com>wrote:

> Marcin Borkowski wrote:
> > Scot Becker <scot.becker@gmail.com> napisał(a):
> >
> >> I'm using org-mode to keep track of student grades.  How can I easily
> >> add a bunch of identical headings at a certain level in my tree?
> >> Specifically,I have a L2 heading for each student, and I want to put
> >> a node (heading, with some properties) under each L2 student heading
> >> for that class.
> >
> > Personally, I'd just write a small Elisp function to do that.  (It's
> > easier than you might think - even I could do that;).)  Here's a thing
> > that is (remotely) similar:
> >
> http://mbork.pl/2013-09-23_Automatic_insertion_of_habit_templates_%28en%29
> >
> > Or, you could record a keyboard macro, and even save it as Elisp.
>
> Other solutions include:
>
> - using YASnippets, or
>
> - writing a skeleton in the Org document and cloning it N times at once
> (see
>   C-c C-x c).
>
> Best regards,
>   Seb
>
> --
> Sebastien Vauban
>
>
>

[-- Attachment #2: Type: text/html, Size: 2219 bytes --]

  reply	other threads:[~2013-10-28 16:08 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-28  1:13 Insert a heading in every sibling Scot Becker
2013-10-28  6:13 ` Marcin Borkowski
2013-10-28  8:51   ` Sebastien Vauban
2013-10-28 16:08     ` Scot Becker [this message]
2013-10-29 19:01       ` John Kitchin
2013-12-21  6:04 ` Yasushi SHOJI

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='CAFNfHHxCeWqkTJCNVz+jF4-C3azQMknajk4B=1hEPXBAGU0Sgg@mail.gmail.com' \
    --to=scot.becker@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=sva-news@mygooglest.com \
    /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).