summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2016-06-03 00:18:49 -0400
committerKyle Meyer <kyle@kyleam.com>2016-06-03 00:18:49 -0400
commite6276c428c52bcbacb9558e8efcb6179b0f7d751 (patch)
tree69774e0f1693587a1f51d7593b1e37287f7502ac
parent27addc87dc38cbc93b13bea7dd43063cde554ec9 (diff)
downloademacs.d-e6276c428c52bcbacb9558e8efcb6179b0f7d751.tar.gz
Rework km/yas-dummy
Seems to have stopped working. Haven't looked into why. In new setup, it seems to need the yas-reload-all call in order to see my snippets right away. Again, haven't looked into it.
-rw-r--r--init.el9
1 files changed, 6 insertions, 3 deletions
diff --git a/init.el b/init.el
index ca38188..649632e 100644
--- a/init.el
+++ b/init.el
@@ -1231,12 +1231,15 @@
(use-package yasnippet
:diminish yas-minor-mode
- :commands km/yas-dummy
+ :defer t
:init
+ (defun km/yas-dummy ()
+ (interactive)
+ (require 'yasnippet)
+ (yas-reload-all 'no-jit)
+ (message "Yas loaded"))
(global-set-key (kbd "C-c i") #'km/yas-dummy)
:config
- (defun km/yas-dummy ()
- (interactive))
(global-set-key (kbd "C-c i") nil)
(setq yas-fallback-behavior nil)