[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
yasnippet doesn't work after switching to github version
From: |
Tassilo Horn |
Subject: |
yasnippet doesn't work after switching to github version |
Date: |
Thu, 17 Nov 2011 08:51:35 +0100 |
User-agent: |
Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.91 (gnu/linux) |
Hi all,
I've used yasnippet from code.google.com's svn for a long time. Now
I've seen that they've moved over to github. So I cloned
git://github.com/capitaomorte/yasnippet.git
and am now using that. But unfortunately, my snippets don't trigger,
although C-h k TAB says its bound to `yas/expand'.
My configuration is this:
--8<---------------cut here---------------start------------->8---
(add-to-list 'load-path "~/repos/el/yasnippet/")
(require 'yasnippet)
(yas/initialize)
(setq yas/snippet-dirs "~/repos/el/yasnippets/")
(yas/reload-all)
--8<---------------cut here---------------end--------------->8---
In ~/repos/el/yasnippets/, there are my custom snippets that used to
work. For example, there are snippets for message-mode.
--8<---------------cut here---------------start------------->8---
/home/horn/repos/el/yasnippets:
total used in directory 16K available 192855692
drwxr-xr-x 4 horn horn 4,0K 23. Jul 22:41 .
drwxr-xr-x 18 horn horn 4,0K 16. Nov 08:17 ..
drwxr-xr-x 2 horn horn 4,0K 23. Jul 22:41 message-mode
/home/horn/repos/el/yasnippets/message-mode:
total used in directory 40K available 192855692
drwxr-xr-x 2 horn horn 4,0K 23. Jul 22:41 .
drwxr-xr-x 4 horn horn 4,0K 23. Jul 22:41 ..
-rw-r--r-- 1 horn horn 91 23. Jul 22:41 b
-rw-r--r-- 1 horn horn 109 23. Jul 22:41 br
-rw-r--r-- 1 horn horn 109 23. Jul 22:41 bw
-rw-r--r-- 1 horn horn 95 23. Jul 22:41 g
-rw-r--r-- 1 horn horn 83 23. Jul 22:41 h
-rw-r--r-- 1 horn horn 89 23. Jul 22:41 ha
-rw-r--r-- 1 horn horn 89 23. Jul 22:41 he
-rw-r--r-- 1 horn horn 111 23. Jul 22:41 vg
--8<---------------cut here---------------end--------------->8---
That's the `b' file for example:
--8<---------------cut here---------------start------------->8---
#contributor : Tassilo Horn <tassilo@member.fsf.org>
#name : Bye, Tassilo
# --
Bye,
Tassilo
--8<---------------cut here---------------end--------------->8---
Comparing that to the snippets that ship with yasnippet, the syntax and
structure of the snippet dir seems correct.
Any idea what's wrong or where I should start debugging.
Bye,
Tassilo (typed completely, not expanded :-()
--
(What the world needs (I think) is not
(a Lisp (with fewer parentheses))
but (an English (with more.)))
Brian Hayes, http://tinyurl.com/3y9l2kf
- yasnippet doesn't work after switching to github version,
Tassilo Horn <=