mirror of
https://github.com/joaotavora/yasnippet.git
synced 2025-10-13 21:13:04 +00:00
trigger key always tab, but binds using `minor-mode-overriding-map-alist'
This commit is contained in:
parent
af81a55f39
commit
e8ea8e27c1
@ -783,7 +783,11 @@ Key bindings:
|
||||
(cond (yas/minor-mode
|
||||
;; Reload the trigger key
|
||||
;;
|
||||
(yas/trigger-key-reload)
|
||||
(push (cons 'yas/minor-mode (let ((map (make-sparse-keymap)))
|
||||
(define-key map [tab] 'yas/expand)
|
||||
map))
|
||||
minor-mode-overriding-map-alist)
|
||||
;; (yas/trigger-key-reload)
|
||||
;; Install the direct keymaps in `emulation-mode-map-alists'
|
||||
;; (we use `add-hook' even though it's not technically a hook,
|
||||
;; but it works). Then define variables named after modes to
|
||||
|
Loading…
x
Reference in New Issue
Block a user