mirror of
https://github.com/joaotavora/yasnippet.git
synced 2025-10-14 05:23:04 +00:00
override c-electric- serial function in yas/keymap instead of yas-minor-mode-map.
This commit is contained in:
parent
b8cb1d27f4
commit
d4b0325911
@ -1597,9 +1597,9 @@ handle the end-of-buffer error fired in it by calling
|
||||
;; disable c-electric-* serial command in YAS fields
|
||||
(add-hook 'c-mode-common-hook
|
||||
'(lambda ()
|
||||
(make-variable-buffer-local 'yas/minor-mode-map)
|
||||
(dolist (k '(":" ">"))
|
||||
(define-key yas/minor-mode-map
|
||||
(make-variable-buffer-local 'yas/keymap)
|
||||
(dolist (k '(":" ">" ";" "<" "{" "}"))
|
||||
(define-key yas/keymap
|
||||
k 'self-insert-command))))
|
||||
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
|
Loading…
x
Reference in New Issue
Block a user