Have smartparens back off of cc modes in 27+

This commit is contained in:
Henrik Lissner 2019-07-22 00:34:07 +02:00
parent 8a101a98b9
commit 567d0b6d16
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -44,6 +44,11 @@
;; or specific :post-handlers with:
;; (sp-pair "{" nil :post-handlers '(:rem ("| " "SPC")))
(after! smartparens
;; Smartparens is broken in `cc-mode' as of Emacs 27. See
;; <https://github.com/Fuco1/smartparens/issues/963>.
(unless EMACS27+
(pushnew! sp--special-self-insert-commands 'c-electric-paren 'c-electric-brace))
;; Smartparens' navigation feature is neat, but does not justify how
;; expensive it is. It's also less useful for evil users. This may need to
;; be reactivated for non-evil users though. Needs more testing!