Fork me on GitHub
#editors
<
2015-06-09
>
peterbak14:06:07

Q for emacs/spacemacs users: what's the right sequence of commands to wrap an expression into a let block? For instance, i have (something blah), and I need to turn it into (let [s (something blah)]) - so far I can think of "slurp forward", then "visually select between parens" and "surround with [", but that feels clunky. What say you, Emacs wizards?

martinklepsch15:06:55

@peterbak: there’s clj-refactor, which can do these kinds of things (I’ve heard)

benedek15:06:36

it deffo can

benedek15:06:36

or if you have a a let already you just move your s-exp there:

peterbak15:06:20

whoa, that's neat

benedek15:06:39

this one works without a repl even

peterbak15:06:06

that's a whole other world

benedek15:06:38

that is just the tip of the 🗻 😉

arrdem15:06:34

I need to explore cljr more... I only really us it for the threading operations

benedek15:06:36

we just cleaning up the documentation at the moment perhaps moving stuff from the readme to the wiki

benedek15:06:41

getting ready for 1.1.0

martinklepsch15:06:51

I use nothing but slurp. 😄

benedek15:06:43

dealing with 🍻 ? 😉

bhagany16:06:23

little late to the party, but for that let thing, I'd just put my cursor at the beginning of (something blah), type (let [s and slurp twice.

peterbak17:06:11

@bhagany: good point.. didn't realize slurping works with square brackets

borkdude18:06:17

How do I change the color for "... cannot be resolved"? I want it to be really visible

cfleming21:06:31

borkdude: Hmm, looks like you can’t configure that right now. I’ll fix that so you can set it using an inspection config.

borkdude21:06:21

@cfleming: if it's not too much trouble... I only needed it this afternoon

borkdude21:06:40

@cfleming: when I was refactoring something

cfleming21:06:22

@borkdude: Yeah, I already do that with some of the other inspections, it’s pretty easy to add - that one was the first annotation I added a long time ago

gjnoonan22:06:04

Any emacs users know of something like http-client that works under Org (with babel) ?

gjnoonan22:06:15

or indeed how to make httpclient work that way