From f57409a57f321dbf19baa1bda18e13b940a5ff22 Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Wed, 30 Jun 2021 15:17:55 -0700 Subject: [PATCH] =?UTF-8?q?[oni-yasnippet]=20Try=20expanding=20snippets=20?= =?UTF-8?q?when=20=E2=80=98SPC=E2=80=99=20is=20pressed?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This hopefully makes it easier for me to use snippets. I always forget about them. --- oni-yasnippet.el | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/oni-yasnippet.el b/oni-yasnippet.el index b6b8755..253e407 100644 --- a/oni-yasnippet.el +++ b/oni-yasnippet.el @@ -4,7 +4,7 @@ ;; Author: Tom Willemse ;; Keywords: local -;; Version: 2020.0408.105714 +;; Version: 2021.0630.150352 ;; Package-Requires: (yasnippet yasnippet-snippets diminish) ;; This program is free software; you can redistribute it and/or modify @@ -31,9 +31,10 @@ (with-eval-after-load 'yasnippet (diminish 'yas-minor-mode)) -(define-key yas-minor-mode-map (kbd "C-\\") 'yas-expand) -(define-key yas-minor-mode-map (kbd "TAB") nil) (define-key yas-minor-mode-map (kbd "") nil) +(define-key yas-minor-mode-map (kbd "C-\\") 'yas-expand) +(define-key yas-minor-mode-map (kbd "SPC") yas-maybe-expand) +(define-key yas-minor-mode-map (kbd "TAB") nil) ;;;###autoload(with-eval-after-load 'yasnippet (require 'oni-yasnippet)) ;;;###autoload