emacs-orgmode
[Top][All Lists]
Advanced

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

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


From: Nicolas Goaziou
Subject: [Orgmode] Re: Using yasnippet with org Mode (C-i works TAB doesn't)
Date: Sat, 19 Sep 2009 15:03:58 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux)

Jeff Kowalczyk <address@hidden> 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 ()
              (setq yas/fallback-behavior
                    `(apply ,(lookup-key org-mode-map [tab])))
              (local-set-key [tab] 'yas/expand)))

Anyway, there is one major problem left, it doesn't work with
org-indent-mode as, when you press TAB to get to the next field of a
snippet, you are sent to the first headline in the org file.

I have yet to find a workaround about that.

Regards,

-- 
Nicolas Goaziou





reply via email to

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