Fork me on GitHub
#spacemacs
<
2021-09-03
>
West16:09:39

Any idea what function allowed me to delete a line (`d d`) and have my parentheses still be balanced? I switched from ivy to helm a little bit ago because performance was better, but now I miss this feature when editing clojure. I switched back to ivy again, but the feature is still gone. Then I reinstalled spacemacs, so installed all packages and recompiled, but it’s still gone.

practicalli-johnny17:09:26

Yes, evil-cleverparens makes Vim bindings respect the Clojure structure , T s to toggle on / off

🙌 2
West17:09:30

Ah, when I toggle it the functionality is back!

West17:09:43

Now I just have to figure out why it’s not on by default.

practicalli-johnny17:09:08

You could add this to your .spacemacs in the dotspacemacs/user-config section

(spacemacs/toggle-evil-safe-lisp-structural-editing-on-register-hooks)

practicalli-johnny17:09:41

Or if its just for Clojure :woman-shrugging:

(spacemacs/toggle-evil-safe-lisp-structural-editing-on-register-hook-clojure-mode)

West15:09:21

I do have this in my user config: (spacemacs/toggle-evil-safe-lisp-structural-editing-on-register-hooks). Unfortunately that has no effect in any lisp buffer. When I try to describe, SPC h h, it says it’s in ../init.el, but it isn’t. First it says the file doesn’t even exist. Then it takes me to my spacemacs folder, (usually ~/.emacs.d), but the function is not there.

West15:09:06

Actually, I can’t seem to find this function defined anywhere. Edit: Nevermind, it’s here: layers/+spacemacs/spacemacs-evil/packages.el So that’s strange, it won’t activate on startup. Maybe I’ll need a workaround.

practicalli-johnny15:09:26

I get evil-cleverparens via the Clojure layer. Although it can also be added as a layer itself https://www.spacemacs.org/layers/+vim/evil-cleverparens/README.html

West15:09:03

Ok, I think I’ve solved it. It must have been related to the previous error of line-number not being defined.

West15:09:44

Now I know that one error can cascade into many.