mirror of
https://github.com/joaotavora/yasnippet.git
synced 2025-10-13 05:03:04 +00:00
* yasnippet.el (yas-minor-mode-map): Don't bind to tab
This commit is contained in:
parent
009322196c
commit
043c52a5a9
@ -644,7 +644,12 @@ expanded.")
|
|||||||
|
|
||||||
(defvar yas-minor-mode-map
|
(defvar yas-minor-mode-map
|
||||||
(let ((map (make-sparse-keymap)))
|
(let ((map (make-sparse-keymap)))
|
||||||
(define-key map [(tab)] yas-maybe-expand)
|
;; Modes should always bind to TAB instead of `tab', so as not to override
|
||||||
|
;; bindings that should take higher precedence but which bind to `TAB`
|
||||||
|
;; instead (relying on `function-key-map` to remap `tab` to TAB).
|
||||||
|
;; If this causes problem because of another package that binds to `tab`,
|
||||||
|
;; complain to that other package!
|
||||||
|
;;(define-key map [(tab)] yas-maybe-expand)
|
||||||
(define-key map (kbd "TAB") yas-maybe-expand)
|
(define-key map (kbd "TAB") yas-maybe-expand)
|
||||||
(define-key map "\C-c&\C-s" 'yas-insert-snippet)
|
(define-key map "\C-c&\C-s" 'yas-insert-snippet)
|
||||||
(define-key map "\C-c&\C-n" 'yas-new-snippet)
|
(define-key map "\C-c&\C-n" 'yas-new-snippet)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user