spacemacs

West 2021-09-03T16:24:39.030400Z

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.

zane 2021-09-03T17:01:04.030700Z

Perhaps https://github.com/luxbock/evil-cleverparens?

👍 1
practicalli-johnny 2021-09-03T17:16:26.031Z

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

🙌 1
West 2021-09-03T17:17:30.031300Z

Ah, when I toggle it the functionality is back!

West 2021-09-03T17:17:43.031500Z

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

practicalli-johnny 2021-09-03T17:19:08.031700Z

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

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

practicalli-johnny 2021-09-03T17:19:41.031900Z

Or if its just for Clojure 🤷‍♀️

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

West 2021-09-04T15:00:21.032100Z

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.

West 2021-09-04T15:17:06.032600Z

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-johnny 2021-09-04T15:23:26.033Z

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

West 2021-09-04T15:33:03.033400Z

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

West 2021-09-04T15:54:44.033800Z

Now I know that one error can cascade into many.