From: "Eric Schulte" <schulte.eric@gmail.com>
To: Jeff Kowalczyk <jtk@yahoo.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Re: Using yasnippet with org Mode (C-i works TAB doesn't)
Date: Sat, 19 Sep 2009 07:46:52 -0600 [thread overview]
Message-ID: <m2my4rm4hf.fsf@gmail.com> (raw)
In-Reply-To: <loom.20090919T064714-504@post.gmane.org> (Jeff Kowalczyk's message of "Sat, 19 Sep 2009 05:06:11 +0000 (UTC)")
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 <jtk@yahoo.com> 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
prev parent reply other threads:[~2009-09-19 13:47 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-23 19:23 Using yasnippet with org Mode Ian Barton
2008-11-23 21:11 ` Eric Schulte
2008-11-23 21:17 ` Tassilo Horn
2008-11-23 22:43 ` Eric Schulte
2008-11-24 9:34 ` Ian Barton
2008-11-24 23:51 ` Sebastian Rose
2008-11-24 14:46 ` Re: Using yasnippet with org Mode [Solved] Ian Barton
2008-11-24 15:38 ` Re: Using yasnippet with org Mode Eric Schulte
2008-11-24 0:45 ` Oliver Charles
2008-11-24 15:40 ` Eric Schulte
2008-11-25 15:44 ` Org mode snippets WAS: " Jonathan Arkell
2009-09-19 5:06 ` Using yasnippet with org Mode (C-i works TAB doesn't) Jeff Kowalczyk
2009-09-19 13:03 ` Nicolas Goaziou
2009-09-20 14:16 ` Eric Schulte
2009-09-21 17:18 ` Carsten Dominik
2009-09-22 15:52 ` Nicolas Goaziou
2009-09-22 19:22 ` Eric Schulte
2009-09-19 13:46 ` Eric Schulte [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m2my4rm4hf.fsf@gmail.com \
--to=schulte.eric@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=jtk@yahoo.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).