emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Place skeleton code in source block template?
@ 2015-11-19 19:41 Lawrence Bottorff
  0 siblings, 0 replies; only message in thread
From: Lawrence Bottorff @ 2015-11-19 19:41 UTC (permalink / raw)
  To: emacs-orgmode Mailinglist

[-- 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 --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2015-11-19 19:41 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-11-19 19:41 Place skeleton code in source block template? Lawrence Bottorff

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).