[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] master 46256db 58/60: Fix #648; create ~/.emacs.d/snippets automa

From: João Távora
Subject: [elpa] master 46256db 58/60: Fix #648; create ~/.emacs.d/snippets automatically
Date: Thu, 21 Jan 2016 22:36:09 +0000

branch: master
commit 46256db43d3e00e34f6a28c75930864e5f5af65b
Author: Noam Postavsky <address@hidden>
Commit: Noam Postavsky <address@hidden>

    Fix #648; create ~/.emacs.d/snippets automatically
    * yasnippet.el (yas--load-snippet-dirs): Create
      yas--default-user-snippets-dir, if needed.
 yasnippet.el |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/yasnippet.el b/yasnippet.el
index 98cec83..bd1d864 100644
--- a/yasnippet.el
+++ b/yasnippet.el
@@ -1806,6 +1806,8 @@ With prefix argument USE-JIT do jit-loading of snippets."
 prompt the user to select one."
   (let (errors)
     (if yas-snippet-dirs
+        (when (member yas--default-user-snippets-dir yas-snippet-dirs)
+          (make-directory yas--default-user-snippets-dir t))
         (dolist (directory (reverse (yas-snippet-dirs)))
           (cond ((file-directory-p directory)
                  (yas-load-directory directory (not nojit))

reply via email to

[Prev in Thread] Current Thread [Next in Thread]