A workaround for fixing c-electric- serial command (Issue 27)

This commit is contained in:
Zhang Chiyuan 2009-01-15 07:34:30 +00:00
parent 37281e3a30
commit 8fa2c47406

View File

@ -1594,6 +1594,13 @@ handle the end-of-buffer error fired in it by calling
ad-do-it
(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