summaryrefslogtreecommitdiff
path: root/init.org
diff options
context:
space:
mode:
authorRicardo Wurmus <rekado@elephly.net>2018-07-05 15:02:27 +0200
committerRicardo Wurmus <rekado@elephly.net>2018-07-05 15:02:27 +0200
commit714dca71b081ad3bf56046551b413b2829659e4b (patch)
treefd10aaadb6fe3c20ee0c1c70a228363581afb423 /init.org
parentbc30a8068b7dfe432b991b56e65e3b59f35c67c1 (diff)
Enable yasnippet.
Diffstat (limited to 'init.org')
-rw-r--r--init.org13
1 files changed, 13 insertions, 0 deletions
diff --git a/init.org b/init.org
index 0f8b7a8..0958a5e 100644
--- a/init.org
+++ b/init.org
@@ -828,11 +828,24 @@ I like automatic completion, but it’s nice to also have a key to trigger compl
`(company-tooltip-common ((t (:inherit font-lock-constant-face))))))
#+END_SRC
+I also use snippets for commonly typed expressions.
+
+#+BEGIN_SRC elisp :noweb-ref yas
+(yas-global-mode 1)
+#+END_SRC
+
+Load all of this lazily.
+
#+BEGIN_SRC elisp :noweb-ref completion-lazy
(with-eval-after-load "company"
<<completion>>
)
<<company-hook>>
+
+(with-eval-after-load "yasnippet"
+ <<yas>>
+ )
+(require 'yasnippet)
#+END_SRC
* Pretty symbols