1

While yas-snippet itself loads, the snippets do not. I tried loading them manually and using the following in my init, but neither loads any snippets. What could be the issue?

(require 'yasnippet)
(setq yas-snippet-dirs
      '("~/.emacs.d/snippets"                 ;; personal snippets
        ))
(yas-global-mode 1)

UPDATE:

Removing

(setq yas-snippet-dirs
      '("~/.emacs.d/snippets"                 ;; personal snippets
        ))

fixed the problem.

  • The ~/.emacs.d/snippets dir is include in the search by default. – mankoff Jul 11 '15 at 12:40
  • Seems to work now by removing SETQ yas-snippet-sirs – user2522280 Jul 12 '15 at 12:09
  • Do you actually have any snippets in ~/.emacs.d/snippets? – npostavs Jul 12 '15 at 18:40
0

Removing

(setq yas-snippet-dirs
      '("~/.emacs.d/snippets"                 ;; personal snippets
        ))

fixed the problem.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.