diff --git a/init.el b/init.el index f275cab..3cd9bdc 100644 --- a/init.el +++ b/init.el @@ -44,9 +44,15 @@ avoid modifying the configuration there.") "Users of Emacs Prelude are encouraged to keep their personal configuration changes in this directory. All Emacs Lisp files there are loaded automatically by Prelude.") +(defvar prelude-vendor-dir (concat prelude-dir "vendor/") + "This directory house Emacs Lisp packages that are not yet available in +ELPA (or MELPA).") +(defvar prelude-snippets-dir (concat prelude-dir "snippets/") + "This folder houses addition yasnippet bundles distributed with Prelude.") ;; add Prelude's directories to Emacs's `load-path' (add-to-list 'load-path prelude-modules-dir) +(add-to-list 'load-path prelude-vendor-dir) ;; the core stuff (require 'prelude-packages) diff --git a/prelude/prelude-editor.el b/prelude/prelude-editor.el index 57b4208..e916d2a 100644 --- a/prelude/prelude-editor.el +++ b/prelude/prelude-editor.el @@ -197,6 +197,7 @@ ;; load yasnippet (require 'yasnippet) +(add-to-list 'yas/snippet-dirs prelude-snippets-dir) (yas/global-mode 1) ;; projectile is a project management mode