Fork me on GitHub
#spacemacs
<
2019-05-23
>
nmkip10:05:16

Is there a package to prevent spacemacs from deleting a closing parenthesis with something inside when I press X? (in vim normal mode)

nmkip11:05:02

nevermind, found it

nmkip11:05:41

yes, that one 🙂

nmkip11:05:40

what else do I need? I installed spacemacs two days ago. All I did was enable smartparens strict mode and add evil-cleverparens

nmkip11:05:53

ah, no it wasn't evil-cleverparens. I found evil-smartparens

practicalli-johnny12:05:56

I do add clj-refactor as an option to the Clojure layer, but do not need sayid

practicalli-johnny12:05:41

evil-cleverparens is already part of the Clojure layer, so you dont need to add anything. I will take a look at evil-smartparens to see if there is any advantage. Would be useful to know how you get on with it and if we should switch the Clojure layer to that package instead.

nmkip12:05:40

So far evil-smartparens works as I expected, haven't tried evil-cleverparens yet

nmkip12:05:47

I'll check your setup, thanks!

practicalli-johnny12:05:10

From a brief glance, evil-smartparent should give you a good basic setup. There are many more features in https://github.com/luxbock/evil-cleverparens but if you dont use them you wont miss them 🙂

nmkip12:05:32

Once I get a bit more used to spacemacs, I'll try it. 😄

practicalli-johnny14:05:56

Let me know if you get stuck on something, I am always adding things to my book as I think of them.

ag17:05:13

> Is there a package to prevent spacemacs from deleting a closing parenthesis with something inside when I press X Doesn’t dotspacemacs-smartparens-strict-mode t do that?

practicalli-johnny21:05:03

@ag smartparens strict mode in Emacs or evil insert mode works find. evil keybindings in normal mode don't typically honour smartparens strict mode. This is why evil-cleverparens was added to the Clojure layer.