From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rasmus Subject: Re: [patch] structure snippet completions Date: Sun, 10 Dec 2017 12:09:08 +0100 Message-ID: <87h8sy3kmj.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> <87wp1w3oi7.fsf@gmx.us> 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]:35754) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eNzTz-0001AP-Hm for emacs-orgmode@gnu.org; Sun, 10 Dec 2017 06:09:20 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eNzTw-0006Mr-EN for emacs-orgmode@gnu.org; Sun, 10 Dec 2017 06:09:19 -0500 Received: from [195.159.176.226] (port=52983 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eNzTw-0006MA-78 for emacs-orgmode@gnu.org; Sun, 10 Dec 2017 06:09:16 -0500 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1eNzTm-0002hU-DS for emacs-orgmode@gnu.org; Sun, 10 Dec 2017 12:09:06 +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 8, 2017, at 1:20 PM, Rasmus wrote: >> > >>> >>> 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. > > > Yes. It does that for me, too. But this only affects the buffer from which I `(require 'org-tempo)'. I hadn’t thought of that, but that is rather annoying. Requiring Org Tempo now runs ‘org-tempo-setup’ on all active Org buffers (commit 3efb000739362). Thanks, Rasmus -- Hooray!