From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Eric Schulte" Subject: Re: Re: Using yasnippet with org Mode Date: Sun, 23 Nov 2008 14:43:23 -0800 Message-ID: <87od06dpx0.fsf@gmail.com> References: <4929ADBB.6050809@manor-farm.org> <871vx2f8qs.fsf@gmail.com> <87wseu9m62.fsf@thinkpad.tsdh.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L4Nfs-0007Hg-8p for emacs-orgmode@gnu.org; Sun, 23 Nov 2008 17:43:28 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L4Nfq-0007Gj-D3 for emacs-orgmode@gnu.org; Sun, 23 Nov 2008 17:43:27 -0500 Received: from [199.232.76.173] (port=56486 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L4Nfq-0007Ge-3a for emacs-orgmode@gnu.org; Sun, 23 Nov 2008 17:43:26 -0500 Received: from rv-out-0708.google.com ([209.85.198.249]:13262) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1L4Nfq-00016X-2b for emacs-orgmode@gnu.org; Sun, 23 Nov 2008 17:43:26 -0500 Received: by rv-out-0708.google.com with SMTP id k29so1960138rvb.6 for ; Sun, 23 Nov 2008 14:43:24 -0800 (PST) In-Reply-To: <87wseu9m62.fsf@thinkpad.tsdh.de> (Tassilo Horn's message of "Sun, 23 Nov 2008 22:17:57 +0100") 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: Tassilo Horn Cc: emacs-orgmode@gnu.org Tassilo Horn writes: > "Eric Schulte" writes: > > Hi Eric, > >> I think maybe your lambda should not be quoted, try > > Since lambda evaluates to itself, that doesn't make any difference. > Thanks Tassilo, I didn't realize that was the case As for using yasnippets with tab, the following successfully binds tab to yas/expand when I start emacs with emacs -Q (skips loading customization) and then evaluate the following elisp to load yasnippets and org-mode (load "~/emacs/elisp/util/yasnippet.el") (yas/initialize) (yas/load-directory "~/emacs/snippets") (add-to-list 'load-path "~/emacs/org") (require 'org) (add-hook 'org-mode-hook (lambda () ;; yasnippet (make-variable-buffer-local 'yas/trigger-key) (setq yas/trigger-key [tab]) (define-key yas/keymap [tab] 'yas/next-field-group))) This works for me using a fairly recent Emacs 23 from cvs. Hope this helps -- Eric