emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Orgmode] Re: Using yasnippet with org Mode


From: Eric Schulte
Subject: Re: [Orgmode] Re: Using yasnippet with org Mode
Date: Sun, 23 Nov 2008 14:43:23 -0800
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux)

Tassilo Horn <address@hidden> writes:

> "Eric Schulte" <address@hidden> 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]