I'm having trouble with my custom snippets being loaded. My config for yasnippet is
(require 'yasnippet)
(setq yas/snippet-dirs
'("~/.emacs.d/el-get/yasnippet/snippets"))
(yas/global-mode 1)
I've created a "new spec" snippet via (yas/new-snippet) which is in ~/.emacs.d/el-get/yasnippet/snippets/ruby-mode/new spec
It contains the following
# -*- mode: snippet -*-
# name: new spec
# key: spec
# --
require "spec_helper"
describe ${1:Class} do
it "${2:spec description}" do
$0
end
end
If I invoke (yas/find-snippets) it puts me in ~/.emacs.d/el-get/yasnippet/snippets where I can go to ruby-mode and open the new spec snippet and invoke C-c C-c it will load properly into the ruby-mode and work from that point on.
But it doesn't get loaded when I start emacs for the first time. I wasn't really able to find a guide that would explain yasnippet autoloading and creating new snippets.