spacemacs

Drew Verlee 2025-10-26T22:29:55.666829Z

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.

practicalli-johnny 2025-10-27T10:02:48.373189Z

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 t

practicalli-johnny 2025-10-27T10:06:36.393159Z

If 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)
;;
;; ---------------------------------------

Drew Verlee 2025-10-27T19:31:34.055069Z

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.

practicalli-johnny 2025-10-27T19:56:39.787439Z

, T s key binding toggles evils safe structural editing https://practical.li/spacemacs/install-spacemacs/enhance-clojure-experience/evil-structural-editing/