From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lawrence Bottorff Subject: Place skeleton code in source block template? Date: Thu, 19 Nov 2015 19:41:09 +0000 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11403218d37ac40524e9f07d Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56645) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZzV4y-0005W7-Bi for emacs-orgmode@gnu.org; Thu, 19 Nov 2015 14:41:13 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZzV4x-0001kA-GB for emacs-orgmode@gnu.org; Thu, 19 Nov 2015 14:41:12 -0500 Received: from mail-lf0-x22a.google.com ([2a00:1450:4010:c07::22a]:33342) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZzV4x-0001k4-7u for emacs-orgmode@gnu.org; Thu, 19 Nov 2015 14:41:11 -0500 Received: by lfaz4 with SMTP id z4so55332733lfa.0 for ; Thu, 19 Nov 2015 11:41:10 -0800 (PST) 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: emacs-orgmode Mailinglist --001a11403218d37ac40524e9f07d Content-Type: text/plain; charset=UTF-8 I have customized the org-structure-template-alist to include a special version of an emacs-lisp source code block (attached to I have customized the org-structure-template-alist to incl= ude a special version of an emacs-lisp source code block (attached to <E= ). I would like to also have a way to stick some skeleton code inside this = source code block. For example,=C2=A0

#+name:=C2=A0=
#+begin_src emacs-lisp :session :tangle yes :cache yes :results = silent
=C2=A0 '(start-symbol :id=C2=A0
=C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0:graph=C2=A0
=C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0:ts=C2=A0
=C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0:0.0=C2=A0
=C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0:1.0=C2=A0
=C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0)
=C2=A0 #+en= d_src

I've got elisp code to create the = skeleton list (it will auto-populate :id and :ts), but it would be nice if = I could clone a version of whatever org-mode is doing when I hit <E and = slip it in.

Otherwise, I'll just expand my ske= leton list code to wrap the source code block lines around it. But I'd = like to not do that. Not very elegant. Don't want to add a new org-stru= cture-template-alist entry either. Seems not in the spirit of it.

LB
--001a11403218d37ac40524e9f07d--