This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-05-23
Channels
- # announcements (12)
- # beginners (225)
- # calva (7)
- # cider (45)
- # clj-kondo (1)
- # cljdoc (1)
- # cljsrn (3)
- # clojure (112)
- # clojure-dev (45)
- # clojure-europe (6)
- # clojure-finland (2)
- # clojure-india (1)
- # clojure-nl (27)
- # clojure-spec (37)
- # clojure-uk (171)
- # clojurescript (39)
- # core-async (9)
- # cursive (22)
- # datascript (8)
- # datomic (50)
- # emacs (12)
- # figwheel-main (17)
- # fulcro (42)
- # garden (2)
- # hoplon (27)
- # jobs (4)
- # kaocha (8)
- # klipse (2)
- # luminus (2)
- # off-topic (9)
- # perun (33)
- # planck (2)
- # re-frame (9)
- # reagent (48)
- # reitit (5)
- # remote-jobs (1)
- # rum (2)
- # shadow-cljs (23)
- # slack-help (3)
- # spacemacs (18)
- # sql (7)
- # tools-deps (24)
- # unrepl (9)
- # vim (30)
Is there a package to prevent spacemacs from deleting a closing parenthesis with something inside when I press X? (in vim normal mode)
@juan.ignacio848 I assume you found evil-cleverparens
https://practicalli.github.io/spacemacs/install-spacemacs/evil-structural-editing.html
what else do I need? I installed spacemacs two days ago. All I did was enable smartparens strict mode and add evil-cleverparens
@juan.ignacio848 My Clojure setup is detailed here https://practicalli.github.io/spacemacs/install-spacemacs/enhance-clojure-experience.html
I do add clj-refactor
as an option to the Clojure layer, but do not need sayid
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.
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 🙂
Let me know if you get stuck on something, I am always adding things to my book as I think of them.
> 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?
@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.