From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Abrahamsen Subject: Re: add blocks to org-structure-template-alist Date: Fri, 27 Apr 2018 17:12:13 -0700 Message-ID: <87tvrwyysi.fsf@ericabrahamsen.net> 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]:48500) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fCDW7-0004R2-AK for emacs-orgmode@gnu.org; Fri, 27 Apr 2018 20:15:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fCDW6-0005Tr-IP for emacs-orgmode@gnu.org; Fri, 27 Apr 2018 20:15:07 -0400 In-Reply-To: <87efj0p7l9.fsf@gnu.org> (Bastien's message of "Sat, 28 Apr 2018 01:12:18 +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: Bastien Cc: emacs-orgmode@gnu.org, Nicolas Goaziou , Charles Millar 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? I think more complicated templating has gone into org-tempo.el, which can be loaded separately, and uses the tempo package. The docstring of `tempo-define-template' shows what's possible.