From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rasmus Subject: Re: add blocks to org-structure-template-alist Date: Sun, 29 Apr 2018 22:34:39 +0200 Message-ID: <877eopyco0.fsf@gmx.us> References: <13dd9dbd-8ae7-2572-88ac-afccb36533a7@verizon.net> <87in8ctftl.fsf@nicolasgoaziou.fr> <87efj0p7l9.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:45340) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fCt4U-0002i7-JT for emacs-orgmode@gnu.org; Sun, 29 Apr 2018 16:37:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fCt4Q-0006SN-0s for emacs-orgmode@gnu.org; Sun, 29 Apr 2018 16:37:22 -0400 Received: from [195.159.176.226] (port=34393 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fCt4P-0006S0-PN for emacs-orgmode@gnu.org; Sun, 29 Apr 2018 16:37:17 -0400 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1fCt2G-00081O-Vk for emacs-orgmode@gnu.org; Sun, 29 Apr 2018 22:35:04 +0200 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" To: emacs-orgmode@gnu.org Bastien writes: > Hi Nicolas, > > Nicolas Goaziou 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 "