trigger key always tab, but binds using `minor-mode-overriding-map-alist'

This commit is contained in:
João Távora 2012-02-27 02:32:12 +00:00
parent af81a55f39
commit e8ea8e27c1

View File

@ -783,7 +783,11 @@ Key bindings:
(cond (yas/minor-mode (cond (yas/minor-mode
;; Reload the trigger key ;; 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' ;; Install the direct keymaps in `emulation-mode-map-alists'
;; (we use `add-hook' even though it's not technically a hook, ;; (we use `add-hook' even though it's not technically a hook,
;; but it works). Then define variables named after modes to ;; but it works). Then define variables named after modes to