1
0
Fork 0

[oni-yasnippet] Try expanding snippets when ‘SPC’ is pressed

This hopefully makes it easier for me to use snippets. I always forget about
them.
This commit is contained in:
Tom Willemse 2021-06-30 15:17:55 -07:00
parent e50eef7268
commit f57409a57f

View file

@ -4,7 +4,7 @@
;; Author: Tom Willemse <tom@ryuslash.org> ;; Author: Tom Willemse <tom@ryuslash.org>
;; Keywords: local ;; Keywords: local
;; Version: 2020.0408.105714 ;; Version: 2021.0630.150352
;; Package-Requires: (yasnippet yasnippet-snippets diminish) ;; Package-Requires: (yasnippet yasnippet-snippets diminish)
;; This program is free software; you can redistribute it and/or modify ;; 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)) (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 "<tab>") nil) (define-key yas-minor-mode-map (kbd "<tab>") 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(with-eval-after-load 'yasnippet (require 'oni-yasnippet))
;;;###autoload ;;;###autoload