Skip to content

Commit

Permalink
improved the conventions for snippet placement
Browse files Browse the repository at this point in the history
  • Loading branch information
Bozhidar Batsov committed Mar 21, 2012
1 parent ab0f584 commit 98ec236
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions init.el
Expand Up @@ -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)
Expand Down
2 changes: 2 additions & 0 deletions modules/prelude-editor.el
Expand Up @@ -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)
Expand Down
Empty file added personal/snippets/.gitkeep
Empty file.

0 comments on commit 98ec236

Please sign in to comment.