[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:
parent
e50eef7268
commit
f57409a57f
1 changed files with 4 additions and 3 deletions
|
@ -4,7 +4,7 @@
|
|||
|
||||
;; Author: Tom Willemse <tom@ryuslash.org>
|
||||
;; 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 "<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
|
||||
|
|
Loading…
Reference in a new issue