1

I am trying to configure Emacs with yasnippet and a few templates for JavaScript according to this tutorial .

I am new to Emacs and I can't figure out why the yas function doesn't exist. The error I get is:

Symbol's function definition is void: yas/initialize

These are the contents of my init file:

(add-to-list 'load-path "~/.emacs.d/yasnippet")
(require 'yasnippet)
(yas-global-mode 1)
(yas/initialize)
;; Load the snippet files themselves
(yas/load-directory "~/.emacs.d/yasnippet/snippets/text-mode")
;; Let's have snippets in the auto-complete dropdown
(add-to-list 'ac-sources 'ac-source-yasnippet)
itsjeyd
  • 5,070
  • 2
  • 30
  • 49
JuanPabloMF
  • 397
  • 1
  • 3
  • 14
  • 3
    `yas/initialize` is obsolete. There's `yas--initialize` but you don't want that. Just see https://github.com/capitaomorte/yasnippet for current version – abo-abo Mar 13 '14 at 21:59
  • 1
    I think you can just remove that line. – tungd Mar 14 '14 at 02:34

0 Answers0