emacs: yasnippet: bind SPC to yas-maybe-expand in yas-minor-mode-map
authorAmin Bandali <bandali@gnu.org>
Tue, 27 Aug 2019 03:48:44 +0000 (23:48 -0400)
committerAmin Bandali <bandali@gnu.org>
Tue, 27 Aug 2019 05:38:25 +0000 (01:38 -0400)
.emacs.d/init.el

index 08af872..cc01a13 100644 (file)
@@ -1512,6 +1512,7 @@ This function is intended for use with `ivy-ignore-buffers'."
   (add-to-list 'yas-snippet-dirs "~/src/git/guix/etc/snippets" t)
   (yas-reload-all)
   (setq yas-verbosity yas-verbosity-cur)
+  (define-key yas-minor-mode-map (kbd "SPC") yas-maybe-expand)
   (yas-global-mode))
 
 (use-package debbugs)