Re: [Orgmode] Re: Using yasnippet with org Mode (C-i works TAB doesn't)

2009-09-22 Thread Eric Schulte
Carsten Dominik writes: > Hi Eric, > > could I ask you to update the FAQ with this issue? > done, should update to Worg within the hour -- Eric ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.or

[Orgmode] Re: Using yasnippet with org Mode (C-i works TAB doesn't)

2009-09-22 Thread Nicolas Goaziou
Carsten Dominik writes: > could I ask you to update the FAQ with this issue? It still doesn't work with org-indent-mode on, though. I guess the FAQ will have to specify to disable it before using yasnippet (which is a sad thing as both are providing great features). -- Nicolas Goaziou _

Re: [Orgmode] Re: Using yasnippet with org Mode (C-i works TAB doesn't)

2009-09-21 Thread Carsten Dominik
Hi Eric, could I ask you to update the FAQ with this issue? Thanks. - Carsten On Sep 20, 2009, at 3:16 PM, Eric Schulte wrote: Nicolas Goaziou writes: Jeff Kowalczyk writes: (add-hook 'org-mode-hook (lambda () (org-set-local 'yas/trigger-key [tab]) (define-key yas/keymap [tab] 'yas/

Re: [Orgmode] Re: Using yasnippet with org Mode (C-i works TAB doesn't)

2009-09-20 Thread Eric Schulte
Nicolas Goaziou writes: > Jeff Kowalczyk writes: > >> (add-hook 'org-mode-hook >> (lambda () >> (org-set-local 'yas/trigger-key [tab]) >> (define-key yas/keymap [tab] 'yas/next-field-group))) > > According to the yasnippet FAQ (or is it on its forum), it should be > > (add-hook 'org-mode-h

[Orgmode] Re: Using yasnippet with org Mode (C-i works TAB doesn't)

2009-09-20 Thread Nicolas Goaziou
Jeff Kowalczyk writes: > (add-hook 'org-mode-hook > (lambda () > (org-set-local 'yas/trigger-key [tab]) > (define-key yas/keymap [tab] 'yas/next-field-group))) According to the yasnippet FAQ (or is it on its forum), it should be (add-hook 'org-mode-hook #'(lambda ()

Re: [Orgmode] Re: Using yasnippet with org Mode (C-i works TAB doesn't)

2009-09-19 Thread Eric Schulte
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-fie

[Orgmode] Re: Using yasnippet with org Mode (C-i works TAB doesn't)

2009-09-18 Thread Jeff Kowalczyk
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/yas

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

2008-11-24 Thread Sebastian Rose
Ian, this is my yasnippets setup: .emacs => --->8->8->8--- (require 'yasnippet) ;; not yasnippet-bundle (yas/initialize) (yas/load-directory "/home/sebastian/emacs/snippets/") ;; I use the WIN key for my own bindings, since I didn't use

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

2008-11-24 Thread Ian Barton
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-direct

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

2008-11-24 Thread Ian Barton
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-direct

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

2008-11-24 Thread Eric Schulte
A solution for using yasnippets in org-mode (from the yasnippets mailing list) Make sure you have snippets defined for org-mode. If you want to use the snippets from text-mode in org-mode, you can make an empty directory named org-mode in the text-mode directory where you put your text mod

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

2008-11-23 Thread Eric Schulte
Tassilo Horn <[EMAIL PROTECTED]> writes: > "Eric Schulte" <[EMAIL PROTECTED]> 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 ya

[Orgmode] Re: Using yasnippet with org Mode

2008-11-23 Thread Tassilo Horn
"Eric Schulte" <[EMAIL PROTECTED]> writes: Hi Eric, > I think maybe your lambda should not be quoted, try Since lambda evaluates to itself, that doesn't make any difference. , | ELISP> (lambda () nil) | (lambda nil nil) | ELISP> (quote (lambda () nil)) | (lambda nil nil) ` I suspect ya