From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: Re: short way to insert source tag in org mode? Date: Tue, 29 Sep 2009 10:36:21 +0100 Message-ID: <87ws3inld6.wl%ucecesf@ucl.ac.uk> References: <83iqf429fq.fsf@ymail.com> <873a68fnlq.fsf@gollum.intra.norang.ca> <83ske6frn0.fsf@ymail.com> <29623.1254192352@gamaville.dokosmarshall.org> <87pr9ae91s.fsf@gollum.intra.norang.ca> <354.1254195362@gamaville.dokosmarshall.org> Reply-To: e.fraga@ucl.ac.uk Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MsZ8S-0005Tf-FQ for emacs-orgmode@gnu.org; Tue, 29 Sep 2009 05:36:40 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MsZ8N-0005TE-NL for Emacs-orgmode@gnu.org; Tue, 29 Sep 2009 05:36:39 -0400 Received: from [199.232.76.173] (port=45803 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MsZ8N-0005TB-FW for Emacs-orgmode@gnu.org; Tue, 29 Sep 2009 05:36:35 -0400 Received: from vscane-b.ucl.ac.uk ([144.82.108.141]:51666) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MsZ8N-0006ON-3d for Emacs-orgmode@gnu.org; Tue, 29 Sep 2009 05:36:35 -0400 In-Reply-To: <354.1254195362@gamaville.dokosmarshall.org> From: Eric S Fraga List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: nicholas.dokos@hp.com Cc: Bernt Hansen , Emacs-orgmode@gnu.org, Water Lin At Mon, 28 Sep 2009 23:36:02 -0400, Nick Dokos wrote: > > Bernt Hansen wrote: > > > > Using Bernt's setup, I can get the block expanded using C-i, but the > > > key itself is bound to org-cycle. When I say > > > > > > C-h c > > > > > > emacs says "", whereas if I say > > > > > > C-h c C-i > > > > > > emacs says "TAB". In an emacs without yasnippets, otoh, > > > > > > C-h c > > > > > > says "TAB (translated from ". This is all under X of course: I suspect > > > that on a console, things would be simpler. > > > > For me both TAB and C-i run the command yas/expand (according to C-h k). > > I'm using GNU Emacs 22.2.1 (i486-pc-linux-gnu, GTK+ Version 2.12.11) of > > 2008-11-09 on raven, modified by Debian. > > > > I get and TAB as Nick does but both run yas/expand. > > > > I've never tried it in Emacs 23. > > > > I thought that Emacs23 would be the explanation, but I get the different > behavior even with Emacs 22. Ah, well: a mystery that will remain a mystery > (at last, afaiac...) > > Nick Nick, I have both TAB and C-i bound to yas/expand. I use the following in my .emacs org-mode setup section: --8<---------------cut here---------------start------------->8--- (add-hook 'org-mode-hook '(lambda () (make-variable-buffer-local 'yas/trigger-key) (setq yas/trigger-key [tab]) (define-key yas/keymap [tab] 'yas/next-field-group) ; from Richard Riley in org-mode mailing list ) ) --8<---------------cut here---------------end--------------->8--- HTH.