mirror of
https://github.com/joaotavora/yasnippet.git
synced 2025-10-15 22:13:04 +00:00
A workaround for fixing c-electric- serial command (Issue 27)
This commit is contained in:
parent
37281e3a30
commit
8fa2c47406
@ -1594,6 +1594,13 @@ handle the end-of-buffer error fired in it by calling
|
|||||||
ad-do-it
|
ad-do-it
|
||||||
(error (message (error-message-string err)))))
|
(error (message (error-message-string err)))))
|
||||||
|
|
||||||
|
;; 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
|
||||||
|
k 'self-insert-command))))
|
||||||
|
|
||||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
;; Contents of dropdown-list.el
|
;; Contents of dropdown-list.el
|
||||||
|
Loading…
x
Reference in New Issue
Block a user