Switch from electric-spacing to electric-operator

It’s more reliable, and it doesn’t mess up operator characters within
strings.  It has its own quirks, though.
This commit is contained in:
Gergely Polonkai 2017-04-20 15:48:55 +02:00
parent 0b431b5228
commit 0be142e232

View File

@ -503,10 +503,12 @@
:config
(add-hook 'c-mode-hook 'electric-case-c-init))
(use-package electric-spacing
:pin gnu
(use-package electric-operator
:config
(add-hook 'c-mode-common-hook 'electric-spacing-mode))
(add-hook 'c-mode-common-hook 'electric-operator-mode)
;; Apply electric-operator-mode to vala-mode, too
(apply #'electric-operator-add-rules-for-mode 'vala-mode
electric-operator-prog-mode-rules))
(use-package emamux)