Received: by 10.224.215.194 with SMTP id hf2mr4822757qab.0.1342117052297; Thu, 12 Jul 2012 11:17:32 -0700 (PDT) X-BeenThere: smart-snippet@googlegroups.com Received: by 10.224.210.200 with SMTP id gl8ls3799341qab.7.gmail; Thu, 12 Jul 2012 11:17:31 -0700 (PDT) Received: by 10.224.174.74 with SMTP id s10mr4430250qaz.1.1342117051084; Thu, 12 Jul 2012 11:17:31 -0700 (PDT) Received: by 10.224.214.195 with SMTP id hb3msqab; Thu, 28 Jun 2012 01:48:17 -0700 (PDT) Received: by 10.52.179.98 with SMTP id df2mr39572vdc.3.1340873297704; Thu, 28 Jun 2012 01:48:17 -0700 (PDT) Date: Thu, 28 Jun 2012 01:48:17 -0700 (PDT) From: Jakub Arnold To: smart-snippet@googlegroups.com Message-Id: Subject: snippets are not loading MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_119_19160665.1340873297325" ------=_Part_119_19160665.1340873297325 Content-Type: multipart/alternative; boundary="----=_Part_120_11424455.1340873297325" ------=_Part_120_11424455.1340873297325 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit 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. ------=_Part_120_11424455.1340873297325 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable I'm having trouble with my custom snippets being loaded. My config for yasn= ippet is

(req= uire 'yasnippet)
(se= tq yas/snippet-dirs
=       '("~/.emacs.d/el-get/yasnippet/snippets"))
(yas/global-mode 1)

I've created a = "new spec" snippet via (yas/ne= w-snippet) which is in = ~/.emacs.d/el-get/yasnippet/snippets/= ruby-mode/new spec

It contains the following<= /font>

# -*- mode: snippet -*-
# name: new spec
# key: spec
# --
require "spec_helper"

describe ${1:Class} do

  = it "${2:spec description}" do
    $0
  end
end
<= /div>

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 s= nippet and invoke C-c C-c it will load properly into the ruby-mode = and work from that point on.

But it doesn't g= et loaded when I start emacs for the first time. I wasn't really able to fi= nd a guide that would explain yasnippet autoloading and creating new snippe= ts.
------=_Part_120_11424455.1340873297325-- ------=_Part_119_19160665.1340873297325--