Any smartparens users? How do you configure it so that { } <-- when this line is deleted it does this: {} instead of removing it. This already works with parens, so i assume its a configuration issue to set other chars other then parens.
Set smartparens to strict mode. There are three relevant variables already in the spacemacs config, which I personally set to true
;; If non-nil pressing the closing parenthesis `)' key in insert mode passes
;; over any automatically added closing parenthesis, bracket, quote, etc...
;; This can be temporary disabled by pressing `C-q' before `)'. (default nil)
dotspacemacs-smart-closing-parenthesis tIf using Evil mode (vim-style editing) then enable evil clever parens so dd and similar commands respect smartparens
;; ---------------------------------------
;; Safe structural editing for all major modes
(spacemacs/toggle-evil-safe-lisp-structural-editing-on-register-hooks)
;; for clojure layer only (comment out line above)
;; (spacemacs/toggle-evil-safe-lisp-structural-editing-on-register-hook-clojure-mode)
;;
;; ---------------------------------------I have (spacemacs/toggle-evil-safe-lisp-structural-editing-on-register-hooks)
and evaled it, still seem to not take effect.
I need to compartmentalize my whole emacs config and trim it down. i bet i have errors on stuff i dont' care about blocking the small bits i do care about lol.
, T s key binding toggles evils safe structural editing
https://practical.li/spacemacs/install-spacemacs/enhance-clojure-experience/evil-structural-editing/