fixed #228 - restored prelude-personal-snippets-directory

This commit is contained in:
Bozhidar Batsov 2012-12-09 00:14:53 +02:00
parent 8cdce659ef
commit 7cbb23e77e
2 changed files with 4 additions and 1 deletions

View file

@ -48,7 +48,9 @@ by Prelude.")
"This directory house Emacs Lisp packages that are not yet available in "This directory house Emacs Lisp packages that are not yet available in
ELPA (or MELPA).") ELPA (or MELPA).")
(defvar prelude-snippets-dir (expand-file-name "snippets" prelude-dir) (defvar prelude-snippets-dir (expand-file-name "snippets" prelude-dir)
"This folder houses addition yasnippet bundles distributed with Prelude.") "This folder houses additional yasnippet bundles distributed with Prelude.")
(defvar prelude-personal-snippets-dir (expand-file-name prelude-personal-dir "snippets")
"This folder houses additional yasnippet bundles added by the users.")
(defvar prelude-savefile-dir (expand-file-name "savefile" prelude-dir) (defvar prelude-savefile-dir (expand-file-name "savefile" prelude-dir)
"This folder stores all the automatically generated save/history-files.") "This folder stores all the automatically generated save/history-files.")

View file

@ -219,6 +219,7 @@
;; load yasnippet ;; load yasnippet
(require 'yasnippet) (require 'yasnippet)
(add-to-list 'yas-snippet-dirs prelude-snippets-dir) (add-to-list 'yas-snippet-dirs prelude-snippets-dir)
(add-to-list 'yas-snippet-dirs prelude-personal-snippets-dir)
(yas-global-mode 1) (yas-global-mode 1)
;; projectile is a project management mode ;; projectile is a project management mode