From b635a36a0c52dcc8ecff8817c21f31ddcff9397b Mon Sep 17 00:00:00 2001 From: Bozhidar Batsov Date: Wed, 18 Apr 2012 12:31:11 +0300 Subject: [PATCH] restored vendor and snippets dirs --- init.el | 6 ++++++ prelude/prelude-editor.el | 1 + 2 files changed, 7 insertions(+) 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