I've just installed yasnippet, and added the following to my .emacs
:
(add-to-list 'load-path
"~/.emacs.d/plugins/yasnippet")
(require 'yasnippet)
(yas-global-mode 1)
However, on startup, I get the following error from Emacs:
Check your `yas-snippet-dirs': ~/.emacs.d/snippets is not a directory
Now, I've checked that variable, and it's defined as something called top-level-dirs
in yasnippet.el
. In my case, snippets
is located in ~/.emacs.d/plugins/yasnippet
, rather than directly in ~/.emacs.d/
as the program seems to expect. How do I correct this?