emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Rasmus <rasmus@gmx.us>
To: emacs-orgmode@gnu.org
Subject: Re: add blocks to org-structure-template-alist
Date: Sun, 29 Apr 2018 22:34:39 +0200	[thread overview]
Message-ID: <877eopyco0.fsf@gmx.us> (raw)
In-Reply-To: 87efj0p7l9.fsf@gnu.org

Bastien <bzg@gnu.org> writes:

> Hi Nicolas,
>
> Nicolas Goaziou <mail@nicolasgoaziou.fr> writes:
>
>> In master branch, the format has changed.
>
> With the new template mechanism, can we have rich templates like the
> one Charles quotes?
>
>   (add-to-list 'org-structure-template-alist '("r" "#+begin_src rec :data? :type \n#+end_src" ""))
>
> allowing cursor positioning, etc?
>
> If yes, what pointer can we add to ORG-NEWS?

Not at the moment.

The particular example could be approximated with

    ("r" . "#+begin_src rec :data :type")

On the snippet expansion side, you can make whatever you want, see the
"<I" snippet.

It would require a different syntax to support more sophisticated blocks.

Rasmus

-- 
9000!

  parent reply	other threads:[~2018-04-29 20:37 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-04-27 22:24 add blocks to org-structure-template-alist Charles Millar
2018-04-27 23:00 ` Nicolas Goaziou
2018-04-27 23:12   ` Bastien
2018-04-27 23:22     ` Nicolas Goaziou
2018-04-28  6:16       ` Bastien
2018-04-28  0:12     ` Eric Abrahamsen
2018-04-29 20:34     ` Rasmus [this message]
2018-04-27 23:09 ` Bastien
2018-04-28  0:43   ` Charles Millar
2018-04-28  6:22     ` Bastien
2018-04-28 13:02       ` Charles Millar

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=877eopyco0.fsf@gmx.us \
    --to=rasmus@gmx.us \
    --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).