From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Eric Schulte" Subject: Re: Re: Using yasnippet with org Mode (C-i works TAB doesn't) Date: Sat, 19 Sep 2009 07:46:52 -0600 Message-ID: References: <4929ADBB.6050809@manor-farm.org> 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 1Mp0HH-0000do-9g for emacs-orgmode@gnu.org; Sat, 19 Sep 2009 09:47:03 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mp0HC-0000c3-NN for emacs-orgmode@gnu.org; Sat, 19 Sep 2009 09:47:03 -0400 Received: from [199.232.76.173] (port=57200 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mp0HC-0000bw-Gc for emacs-orgmode@gnu.org; Sat, 19 Sep 2009 09:46:58 -0400 Received: from mail-qy0-f178.google.com ([209.85.221.178]:49853) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Mp0HB-0005ni-Uw for emacs-orgmode@gnu.org; Sat, 19 Sep 2009 09:46:58 -0400 Received: by qyk8 with SMTP id 8so1603092qyk.24 for ; Sat, 19 Sep 2009 06:46:57 -0700 (PDT) In-Reply-To: (Jeff Kowalczyk's message of "Sat, 19 Sep 2009 05:06:11 +0000 (UTC)") 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: Jeff Kowalczyk Cc: emacs-orgmode@gnu.org Hmm, The following works for me --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))) --8<---------------cut here---------------end--------------->8--- but what you already have looks more like the suggestion in the FAQ at http://orgmode.org/worg/org-faq.php#YASnippet, so I wouldn't be surprised if my setup doesn't work for you either... I'm also using the org git master, and emacs 23 git master, so maybe the problem is related to a recent change in the yasnippet repo? Best -- Eric Jeff Kowalczyk writes: > With Emacs 23.1, org git master, and yasnippet svn trunk, I have the problem > that the TAB key does not expand snippets, but C-i does. I'm using the Org > Manual's recommended configuration to address the conflict, see init.el lines > matching org|yas below: > > > (load-file "~/.emacs.d/vendor/yasnippet/yasnippet.el") > (yas/initialize) > (yas/load-directory "~/.emacs.d/vendor/yasnippet/snippets") > (global-set-key "\C-cl" 'org-store-link) > (global-set-key "\C-ca" 'org-agenda) > (setq org-log-done 'time) > (setq org-special-ctrl-k t) > (org-remember-insinuate) > (setq org-directory "~/org/") > (setq org-default-notes-file (concat org-directory "/notes.org")) > (define-key global-map "\C-cr" 'org-remember) > (setq org-clock-into-drawer t) > (setq org-clock-clocktable-default-properties '(:maxlevel 2 :scope subtree)) > (add-hook 'org-mode-hook > (lambda () > (org-set-local 'yas/trigger-key [tab]) > (define-key yas/keymap [tab] 'yas/next-field-group))) > > > I normally have ido enabled, but I disabled it with no change in the behavior. > Thanks for any suggestions. > > Jeff > > > > _______________________________________________ > Emacs-orgmode mailing list > Remember: use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode