From mboxrd@z Thu Jan 1 00:00:00 1970 From: Scot Becker Subject: Re: Insert a heading in every sibling Date: Mon, 28 Oct 2013 21:08:19 +0500 Message-ID: References: <20131028071319.45bb0a26@aga-netbook> <868uxd6ao5.fsf@somewhere.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11c23c882e170104e9cf50b2 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:35363) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VapN0-0003iQ-6T for emacs-orgmode@gnu.org; Mon, 28 Oct 2013 12:08:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VapMu-0006kQ-VH for emacs-orgmode@gnu.org; Mon, 28 Oct 2013 12:08:45 -0400 Received: from mail-lb0-x232.google.com ([2a00:1450:4010:c04::232]:50066) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VapMu-0006iR-Is for emacs-orgmode@gnu.org; Mon, 28 Oct 2013 12:08:40 -0400 Received: by mail-lb0-f178.google.com with SMTP id o14so3027807lbi.37 for ; Mon, 28 Oct 2013 09:08:39 -0700 (PDT) In-Reply-To: <868uxd6ao5.fsf@somewhere.org> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Sebastien Vauban Cc: Org-mode ml --001a11c23c882e170104e9cf50b2 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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 wrote: > Marcin Borkowski wrote: > > Scot Becker napisa=C5=82(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%2= 9 > > > > 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 > > > --001a11c23c882e170104e9cf50b2 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Thanks, =C2=A0Seb and Marcin. =C2=A0I didn't know abou= t cloning. =C2=A0That will do for those parts of the tree that I know about= before I start filling in the data. =C2=A0For afterwards, which is more th= e case I'm thinking about, I'll aim to write an Elisp function usin= g org-insert-subheading. =C2=A0That sample macro gives me something to go o= n. I'll experiment with keyboard macros, too, which might be fine for t= his application.

Thx.
=C2=A0
=

On Mon, Oct 28, 2013 at 1:51 PM, Sebasti= en Vauban <sva-news@mygooglest.com> wrote:
Marcin Borkowski wrote: > Scot Becker <scot.becker@g= mail.com> napisa=C5=82(a):
>
>> I'm using org-mode to keep track of student grades. =C2=A0How = 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 p= ut
>> a node (heading, with some properties) under each L2 student headi= ng
>> for that class.
>
> Personally, I'd just write a small Elisp function to do that. =C2= =A0(It's
> easier than you might think - even I could do that;).) =C2=A0Here'= s a thing
> that is (remotely) similar:
> http://mbork.pl/2013-09-23_Automatic_ins= ertion_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 (se= e
=C2=A0 C-c C-x c).

Best regards,
=C2=A0 Seb

--
Sebastien Vauban



--001a11c23c882e170104e9cf50b2--