Skip to content

Commit

Permalink
Fix snippet-dirs order allowing custom snippets to override defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
jimeh committed Aug 11, 2012
1 parent 8a0e5ea commit c18e9a3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
1 change: 0 additions & 1 deletion custom-variables.el
Expand Up @@ -85,7 +85,6 @@
'(whitespace-action nil)
'(winner-mode t nil (winner))
'(yas/global-mode t nil (yasnippet))
'(yas/snippet-dirs (quote ("~/.emacs.d/snippets" "~/.emacs.d/el-get/yasnippet/snippets")) nil (yasnippet))
'(yas/use-menu t))
(custom-set-faces
;; custom-set-faces was added by Custom.
Expand Down
10 changes: 9 additions & 1 deletion packages.el
Expand Up @@ -138,7 +138,15 @@
(require 'linum+)

;; Load full-ack
(require 'full-ack))
(require 'full-ack)

;; Load yasnippet and set snippet dirs in reverse to default order allowing
;; my own user-defined snippets to override default snippets.
(when (require 'yasnippet nil 'noerror)
(setq yas/snippet-dirs (list (when yas/load-file-name
(concat (file-name-directory yas/load-file-name)
"snippets"))
"~/.emacs.d/snippets"))))


;;
Expand Down

0 comments on commit c18e9a3

Please sign in to comment.