emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [Orgmode] Re: [Babel] Macro for begin_src?


From: Dan Davison
Subject: Re: [Orgmode] Re: [Babel] Macro for begin_src?
Date: Fri, 16 Apr 2010 23:55:39 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux)

> Thanks!  I'm having trouble triggering the yasnippets using the TAB key, so 
> I'm
> just using the GUI menu.
>
> Do you literally type "src" (no quotes), then press Tab?

Yeah, but there's some magic code needed, which is also on Bernt's
page.

  (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)))

Do you have that?  What do you get if you do C-h k TAB in org? I get

<tab> runs the command yas/expand ...

Dan

>
> --Nate
>
> _______________________________________________
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> address@hidden
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode




reply via email to

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