mirror of
https://github.com/joaotavora/yasnippet.git
synced 2025-10-13 21:13:04 +00:00
Bugfix: fix for #235 didn't load, usage before definition
This commit is contained in:
parent
cffd1aa095
commit
12c21c6c62
@ -426,9 +426,6 @@ the trigger key itself."
|
|||||||
(dolist (key keys)
|
(dolist (key keys)
|
||||||
(define-key keymap (read-kbd-macro key) definition))))
|
(define-key keymap (read-kbd-macro key) definition))))
|
||||||
|
|
||||||
(defvar yas-keymap (yas--init-yas-in-snippet-keymap)
|
|
||||||
"The keymap active while a snippet expansion is in progress.")
|
|
||||||
|
|
||||||
(defun yas--init-yas-in-snippet-keymap ()
|
(defun yas--init-yas-in-snippet-keymap ()
|
||||||
(setq yas-keymap
|
(setq yas-keymap
|
||||||
(let ((map (make-sparse-keymap)))
|
(let ((map (make-sparse-keymap)))
|
||||||
@ -440,6 +437,9 @@ the trigger key itself."
|
|||||||
(,yas-skip-and-clear-key . yas-skip-and-clear-or-delete-char)))
|
(,yas-skip-and-clear-key . yas-skip-and-clear-or-delete-char)))
|
||||||
map)))
|
map)))
|
||||||
|
|
||||||
|
(defvar yas-keymap (yas--init-yas-in-snippet-keymap)
|
||||||
|
"The keymap active while a snippet expansion is in progress.")
|
||||||
|
|
||||||
(defvar yas-key-syntaxes (list "w" "w_" "w_." "w_.()" "^ ")
|
(defvar yas-key-syntaxes (list "w" "w_" "w_." "w_.()" "^ ")
|
||||||
"List of character syntaxes used to find a trigger key before point.
|
"List of character syntaxes used to find a trigger key before point.
|
||||||
The list is tried in the order while scanning characters
|
The list is tried in the order while scanning characters
|
||||||
|
Loading…
x
Reference in New Issue
Block a user