From 567d0b6d16b0f45a76741ad46ecac0aaad9f3700 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Mon, 22 Jul 2019 00:34:07 +0200 Subject: [PATCH] Have smartparens back off of cc modes in 27+ --- modules/config/default/config.el | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/config/default/config.el b/modules/config/default/config.el index f757756d6..0198a0701 100644 --- a/modules/config/default/config.el +++ b/modules/config/default/config.el @@ -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 + ;; . + (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!