From: Lawrence Bottorff <borgauf@gmail.com>
To: emacs-orgmode Mailinglist <emacs-orgmode@gnu.org>
Subject: Place skeleton code in source block template?
Date: Thu, 19 Nov 2015 19:41:09 +0000 [thread overview]
Message-ID: <CAFAhFSXWnUZeW+eAgdGP8D19ngsY6m_0H40S=EfNVUoq=xzWmw@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 889 bytes --]
I have customized the org-structure-template-alist to include 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,
#+name:
#+begin_src emacs-lisp :session :tangle yes :cache yes :results silent
'(start-symbol :id
:graph
:ts
:0.0
:1.0
)
#+end_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 skeleton 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-structure-template-alist entry either. Seems not in
the spirit of it.
LB
[-- Attachment #2: Type: text/html, Size: 1180 bytes --]
reply other threads:[~2015-11-19 19:41 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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='CAFAhFSXWnUZeW+eAgdGP8D19ngsY6m_0H40S=EfNVUoq=xzWmw@mail.gmail.com' \
--to=borgauf@gmail.com \
--cc=emacs-orgmode@gnu.org \
/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).