editors

Discussion about all editors used for Clojure/ClojureScript
peterbak 2015-06-09T14:54:07.000697Z

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?

martinklepsch 2015-06-09T15:00:55.000698Z

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

benedek 2015-06-09T15:02:36.000699Z

it deffo can

benedek 2015-06-09T15:03:55.000703Z

you might need to expand it: https://github.com/clojure-emacs/clj-refactor.el/wiki/cljr-expand-let

benedek 2015-06-09T15:04:36.000704Z

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

peterbak 2015-06-09T15:06:20.000708Z

whoa, that's neat

benedek 2015-06-09T15:06:39.000709Z

this one works without a repl even

benedek 2015-06-09T15:07:03.000710Z

enjoy :simple_smile:

peterbak 2015-06-09T15:07:06.000711Z

that's a whole other world

benedek 2015-06-09T15:07:38.000712Z

that is just the tip of the 🗻 😉

arrdem 2015-06-09T15:10:34.000713Z

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

benedek 2015-06-09T15:11:36.000714Z

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

benedek 2015-06-09T15:11:41.000715Z

getting ready for 1.1.0

martinklepsch 2015-06-09T15:11:51.000716Z

I use nothing but slurp. 😄

benedek 2015-06-09T15:12:43.000717Z

dealing with 🍻 ? 😉

martinklepsch 2015-06-09T15:16:06.000718Z

& 🍺 ;D

bhagany 2015-06-09T16:08:23.000720Z

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.

peterbak 2015-06-09T17:19:11.000721Z

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

borkdude 2015-06-09T18:09:17.000723Z

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

borkdude 2015-06-09T18:09:22.000724Z

in Cursive

cfleming 2015-06-09T21:14:31.000727Z

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

borkdude 2015-06-09T21:15:21.000728Z

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

borkdude 2015-06-09T21:15:40.000729Z

@cfleming: when I was refactoring something

cfleming 2015-06-09T21:16:22.000730Z

@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

gjnoonan 2015-06-09T22:29:04.000731Z

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

gjnoonan 2015-06-09T22:29:15.000732Z

or indeed how to make httpclient work that way