summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRicardo Wurmus <rekado@elephly.net>2024-02-21 12:56:29 +0100
committerRicardo Wurmus <rekado@elephly.net>2024-02-21 12:56:29 +0100
commit11b8d22d178fc5b2e0ee811994ebddbf99675f1e (patch)
treec57c88aa7244b02fbc2f6637ba4f11284a7780bc
parent9930b7963684b3a8d56835b3af491e88227bf1a1 (diff)
Wrap yasnippet in use-package macro.
-rw-r--r--init.org7
1 files changed, 4 insertions, 3 deletions
diff --git a/init.org b/init.org
index d868d85..6e216b6 100644
--- a/init.org
+++ b/init.org
@@ -306,9 +306,10 @@ Oleg Pykhalov shared this useful snippet to list bugs for which I am listed as t
When working on Guix it helps to reduce boilerplate with snippets. I like to have YASnippet enabled and let it use the snippets that are provided with Guix:
#+BEGIN_SRC elisp
-(require 'yasnippet)
-(add-to-list 'yas-snippet-dirs "~/dev/gx/branches/master/etc/snippets")
-(yas-global-mode)
+(use-package yasnippet
+ :config
+ (add-to-list 'yas-snippet-dirs "~/dev/gx/branches/master/etc/snippets")
+ (yas-global-mode))
#+END_SRC
* Manuals