From 98ec2368ae76408b11b6690315101684d550039b Mon Sep 17 00:00:00 2001 From: Bozhidar Batsov Date: Wed, 21 Mar 2012 16:50:01 +0200 Subject: [PATCH] improved the conventions for snippet placement --- init.el | 2 ++ modules/prelude-editor.el | 2 ++ personal/snippets/.gitkeep | 0 3 files changed, 4 insertions(+) create mode 100644 personal/snippets/.gitkeep diff --git a/init.el b/init.el index 35f4d96..7760481 100644 --- a/init.el +++ b/init.el @@ -54,6 +54,8 @@ ELPA (or Marmalade).") "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-snippets-dir (concat prelude-dir "snippets/")) +(defvar prelude-personal-snippets-dir (concat prelude-personal-dir "snippets/")) ;; add Prelude's directories to Emacs's `load-path' (add-to-list 'load-path prelude-modules-dir) diff --git a/modules/prelude-editor.el b/modules/prelude-editor.el index f78840d..0844f76 100644 --- a/modules/prelude-editor.el +++ b/modules/prelude-editor.el @@ -204,6 +204,8 @@ ;; load yasnippet (require 'yasnippet) (yas/initialize) +(add-to-list 'yas/snippet-dirs prelude-snippets-dir) +(add-to-list 'yas/snippet-dirs prelude-personal-snippets-dir) ;; Helm makes finding stuff in Emacs much simpler (require 'helm-config) diff --git a/personal/snippets/.gitkeep b/personal/snippets/.gitkeep new file mode 100644 index 0000000..e69de29