spacemacs

Spacemacs docs: http://develop.spacemacs.org/doc/DOCUMENTATION.html http://develop.spacemacs.org/layers/+lang/clojure/README.html https://practicalli.github.io/spacemacs/
cjsauer 2021-03-31T16:08:56.043100Z

@jr0cket I’m trying out your spacemacs.d setup and it’s really great! One thing I can’t seem to figure out: vim motions like { and } and [b etc (Tim Pope’s unimpaired plugin) don’t seem to be working anymore, and have been replaced by some kind of s-exp motions. Is this something custom you’ve configured? I can’t seem to find how to regain the default behavior.

cjsauer 2021-03-31T16:36:33.043300Z

Ah, I found the issue. I had to comment out this line here https://github.com/practicalli/spacemacs.d/blob/2552390bd56445150615f74e22a631914bdd14c7/init.el#L895

practicalli-john 2021-03-31T16:43:42.043600Z

The ( and [ keybindings navigate s-exp boundaries in the practicalli configuration. Do they do something different in the unimpaired plugin? I dont think plugins can be considered default behaviour across Vim and Emacs

practicalli-john 2021-03-31T16:47:40.043900Z

I dont advise switching off evil safe lisp structural editing for lisp / clojure as it increases the risk of breaking the structure of your code.

practicalli-john 2021-03-31T16:50:17.044200Z

But my config is for me, feel free to change it how you wish

cjsauer 2021-03-31T17:03:22.044400Z

My muscle memory of using { and } to jump between “blocks” is too strong haha. Same with [b to jump to the previous buffer, etc… Enabling structural safety also enables cleverparens, which appears to conflict with evil-unimpaired.

pablore 2021-03-31T21:30:57.045600Z

Noob question: What is the most efficient way to wrap a sexp from (foo bar) to ((foo bar)) that also works with ] and } ?

pablore 2021-03-31T21:32:31.046Z

SPC k w works with only () parens

practicalli-john 2021-03-31T21:59:03.049100Z

@pablore I use surround from vim normal state, s followed by the character. So to surround with {} SPC v to select the sexp, s to surround and } to surround with {} without spaces

👍 1
practicalli-john 2021-03-31T22:00:56.050300Z

Or, use SPC k w and then , r c { to change the sexp to a hash-map

cjsauer 2021-03-31T22:42:12.052300Z

@pablore I do y s a ) } which also leverages vim surround. Mnemonic is “yes surround around parenthesis with curlies”.

👍 1
1