From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rasmus Subject: Re: [patch] structure snippet completions Date: Fri, 08 Dec 2017 22:20:48 +0100 Message-ID: <87wp1w3oi7.fsf@gmx.us> References: <87mv2ya2ep.fsf@pank.eu> <87d13u6ws3.fsf@nicolasgoaziou.fr> <87vahl8oel.fsf@gmx.us> <878tegapfy.fsf@nicolasgoaziou.fr> <87h8t23yag.fsf@gmx.us> <0DE4E68E-7A0F-4602-9BB1-2DA7BB2D5DD7@ucsd.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34867) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eNQ4p-00016a-Of for emacs-orgmode@gnu.org; Fri, 08 Dec 2017 16:21:00 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eNQ4m-0001YY-JU for emacs-orgmode@gnu.org; Fri, 08 Dec 2017 16:20:59 -0500 Received: from [195.159.176.226] (port=46000 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eNQ4m-0001Wz-Bj for emacs-orgmode@gnu.org; Fri, 08 Dec 2017 16:20:56 -0500 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1eNQ4c-0003yy-CT for emacs-orgmode@gnu.org; Fri, 08 Dec 2017 22:20:46 +0100 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 "Berry, Charles" writes: >> On Dec 7, 2017, at 3:37 PM, Rasmus wrote: >> >> I have also pushed the code. "> enabled by requiring org-tempo. >> > > Thanks. I was in a deep funk without "> Let me know about any issues. >> > > Maybe make `tempo-match-finder' be "^ *\\(<[[:word:]]+\\)" so it will > match things like " the user customize it. At the moment snippets with more than one character isn’t supported. Note that the car of org-structure-template-alist elements is now a character. "Snippet-strings" (like "la") will be re-added soon cf. the email from Eric earlier on in this thread. > A minor gotcha: if you `(require 'org-tempo)' after an org buffer has > been created you will need to (org-mode-restart) the buffer to enable > completions. I got stuck trying to add custom templates until I > realized this. It shouldn’t do that since this is near the bottom of org-tempo: (when (eq major-mode 'org-mode) (org-tempo-setup)) On my system it works in the first buffer where I require org-tempo, even without reloading. Which version of Emacs are you using? Rasmus -- A clever person solves a problem. A wise person avoids it