(add-hook 'org-mode-hook
'(lambda ()
(make-variable-buffer-local 'yas/trigger-key)
(setq yas/trigger-key [tab])))
BTW, I've also added this to the FAQ:
http://pluskid.lifegoo.com/upload/project/yasnippet/doc/faq.html
--
pluskid
(add-hook 'org-mode-hook
(lambda ()
(define-key yas/keymap [tab] 'yas/next-field-group))
Hope this can solve your problem.
On Mon, Oct 20, 2008 at 1:33 PM, Eric Griffis <ded...@gmail.com> wrote:
> Hello,
>
> Thanks for the tip! I can now successfully trigger expansion, but
> pressing [tab] does not advance through fields. Here's my C-h k while
> inside a field:
>
> <tab> runs the command yas/expand
> which is an interactive Lisp function in `yasnippet.el'.
> It is bound to <tab>.
> (yas/expand)
>
> Expand a snippet.
>
> If I remove the add-hook and manually initiate yas/expand, C-h k in
> the field reports <tab> is bound to org-cycle.
>
> Eric
>
>
> On Jul 31, 10:40 pm, "Zhang Chiyuan" <plus...@gmail.com> wrote:
>> This should work:
>>
>> (add-hook 'org-mode-hook
>> '(lambda ()
>> (make-variable-buffer-local 'yas/trigger-key)
>> (setq yas/trigger-key [tab])))
>>
>> BTW, I've also added this to the FAQ:http://pluskid.lifegoo.com/upload/project/yasnippet/doc/faq.html
>>
>>
>>
>> On Fri, Aug 1, 2008 at 3:42 AM, Jeff <jeff.sta...@gmail.com> wrote:
>>
>> > Hi all--
>>
>> > Has anyone had success using yasnippet inorg-mode?
>>
>> > When I'm inorg-modeyasnippet is definitely running, and "yas"
>> > displays in my mode-line.
>>
>> > However, when I do C-h k <tab>, the output reads:
>>
>> > <tab> runs the command org-cycle
>> > which is an interactive compiled Lisp function in `/Users/jstautz/
>> > Dropbox/.emacs.d/org.elc'.
>> > It is bound to <tab>, <menu-bar> <Tbl> <Next Field>, <menu-bar> <Org>
>> > <Show/Hide> <Cycle Visibility>.
>> > (org-cycle &optional arg)
>>
>> > Has anyone found any workarounds for this?
>>
>> > --Jeff
>>
>> --
>> pluskid
--
pluskid
I think it might be similar:
(add-hook 'org-mode-hook
(lambda ()
(define-key yas/keymap [tab] 'yas/next-field-group)
(define-key yas/keymap (kbd "S-iso-lefttab") 'yas/prev-field-group))
--
pluskid
On Tue, Nov 11, 2008 at 12:40 AM, Lowyn <lowyn.m...@gmail.com> wrote:
>
> That's what I thought but I got the error "S- must prefix a single
> character, not iso-lefttab".
> >
>
--
pluskid