diff --git a/custom-variables.el b/custom-variables.el index 1d118a5..8821332 100644 --- a/custom-variables.el +++ b/custom-variables.el @@ -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. diff --git a/packages.el b/packages.el index 1680a81..7f24fb0 100644 --- a/packages.el +++ b/packages.el @@ -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")))) ;;