mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
Have smartparens back off of cc modes in 27+
This commit is contained in:
@ -44,6 +44,11 @@
|
|||||||
;; or specific :post-handlers with:
|
;; or specific :post-handlers with:
|
||||||
;; (sp-pair "{" nil :post-handlers '(:rem ("| " "SPC")))
|
;; (sp-pair "{" nil :post-handlers '(:rem ("| " "SPC")))
|
||||||
(after! smartparens
|
(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
|
;; 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
|
;; 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!
|
;; be reactivated for non-evil users though. Needs more testing!
|
||||||
|
Reference in New Issue
Block a user