emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Vladimir Nikishkin <lockywolf@gmail.com>
To: emacs-orgmode@gnu.org
Subject: How do I add #+name: to a structured template?
Date: Thu, 9 Jan 2020 13:26:10 +0800	[thread overview]
Message-ID: <CA+A2iZa3+LUAEZ3aAizJpOc1exgvbbz1XBThyy6TzDXfDS=EvQ@mail.gmail.com> (raw)

I have the following in the .emacs:
(add-to-list 'org-structure-template-alist
         '("SO" . "src scheme :exports both :results output\n?\n"))

A structured template block is automatically prepended with #+start_ ,
but I actually need it to insert
#+name: <cursor>
#+start_srt ... etc.

How can I do that with the new template expansion mechanism?

-- 
Yours sincerely, Vladimir Nikishkin

                 reply	other threads:[~2020-01-09  5:26 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='CA+A2iZa3+LUAEZ3aAizJpOc1exgvbbz1XBThyy6TzDXfDS=EvQ@mail.gmail.com' \
    --to=lockywolf@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).