From e8ea8e27c157f3f4231ee224a309afed189e539c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20T=C3=A1vora?= Date: Mon, 27 Feb 2012 02:32:12 +0000 Subject: [PATCH] trigger key always tab, but binds using `minor-mode-overriding-map-alist' --- yasnippet.el | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/yasnippet.el b/yasnippet.el index d1af979..cb2cb0e 100644 --- a/yasnippet.el +++ b/yasnippet.el @@ -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