From 553e85cb1537159931c1cbd6138dce9c54e5d5ec Mon Sep 17 00:00:00 2001 From: Diego Berrocal Date: Fri, 15 May 2015 10:20:21 -0500 Subject: [PATCH] yas-new-snippet tries to create a Snippet in ~/.emacs.d/snippets This is because the list of snippet dirs had our ~/.emacs.d/private/snippets at the end so it doesn't guess that. Something must have changed upstream. Also it's better to have our own custom snippets to be first so as to override the default ones if we pleased. --- contrib/auto-completion/packages.el | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/contrib/auto-completion/packages.el b/contrib/auto-completion/packages.el index 37022f630..656836d28 100644 --- a/contrib/auto-completion/packages.el +++ b/contrib/auto-completion/packages.el @@ -198,9 +198,9 @@ (yas-global-mode 1) (let ((private-yas-dir (concat configuration-layer-private-directory "snippets"))) (setq yas-snippet-dirs - (append (when (boundp 'yas-snippet-dirs) - yas-snippet-dirs) - (list private-yas-dir))) + (append (list private-yas-dir) + (when (boundp 'yas-snippet-dirs) + yas-snippet-dirs))) (setq yas-wrap-around-region t))))) (add-to-hooks 'spacemacs/load-yasnippet '(prog-mode-hook markdown-mode-hook