summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-emacs/yasnippet-snippets/files/50yasnippet-snippets-gentoo.el')
-rw-r--r--app-emacs/yasnippet-snippets/files/50yasnippet-snippets-gentoo.el9
1 files changed, 5 insertions, 4 deletions
diff --git a/app-emacs/yasnippet-snippets/files/50yasnippet-snippets-gentoo.el b/app-emacs/yasnippet-snippets/files/50yasnippet-snippets-gentoo.el
index 2db51796990b..4c85ffac5510 100644
--- a/app-emacs/yasnippet-snippets/files/50yasnippet-snippets-gentoo.el
+++ b/app-emacs/yasnippet-snippets/files/50yasnippet-snippets-gentoo.el
@@ -1,4 +1,5 @@
-(eval-after-load "yasnippet"
- '(let ((snippets-dir "@SITEETC@"))
- (add-to-list 'yas-snippet-dirs snippets-dir t)
- (yas-load-directory snippets-dir t)))
+(add-to-list 'load-path "@SITELISP@")
+(autoload 'yasnippet-snippets-initialize "yasnippet-snippets"
+ "Load the `yasnippet-snippets' snippets directory." t)
+(eval-after-load 'yasnippet
+ '(yasnippet-snippets-initialize))