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 (C-i works TAB doesn't)


From: Eric Schulte
Subject: Re: [Orgmode] Re: Using yasnippet with org Mode (C-i works TAB doesn't)
Date: Sat, 19 Sep 2009 07:46:52 -0600
User-agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.1.50 (darwin)

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-field-group)))
--8<---------------cut here---------------end--------------->8---

but what you already have looks more like the suggestion in the FAQ at
http://orgmode.org/worg/org-faq.php#YASnippet, so I wouldn't be
surprised if my setup doesn't work for you either...

I'm also using the org git master, and emacs 23 git master, so maybe the
problem is related to a recent change in the yasnippet repo?

Best -- Eric

Jeff Kowalczyk <address@hidden> writes:

> 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/yasnippet.el")
> (yas/initialize)
> (yas/load-directory "~/.emacs.d/vendor/yasnippet/snippets")
> (global-set-key "\C-cl" 'org-store-link)
> (global-set-key "\C-ca" 'org-agenda)
> (setq org-log-done 'time)
> (setq org-special-ctrl-k t)
> (org-remember-insinuate)
> (setq org-directory "~/org/")
> (setq org-default-notes-file (concat org-directory "/notes.org"))
> (define-key global-map "\C-cr" 'org-remember)
> (setq org-clock-into-drawer t)
> (setq org-clock-clocktable-default-properties '(:maxlevel 2 :scope subtree))
> (add-hook 'org-mode-hook
>   (lambda ()
>   (org-set-local 'yas/trigger-key [tab])
>   (define-key yas/keymap [tab] 'yas/next-field-group)))
>
>
> I normally have ido enabled, but I disabled it with no change in the behavior.
> Thanks for any suggestions.
>
> Jeff
>
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Remember: 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]