Fork me on GitHub
#ldnclj
<
2015-06-14
>
agile_geek08:06:28

@benedek: just seen the new wiki for clj-refactor - like it a lot. Is describe refactoring ‘?’ new?

benedek08:06:38

yup. nice addition from expez (lars)

gjnoonan09:06:29

Nice, didn’t notice that myself

agile_geek09:06:12

@benedek Definitely helps with those refactorings u use infrequently.

benedek09:06:25

would a menu like thing help?

benedek09:06:04

specifically thinking of emacs/clj newcommers

otfrom11:06:49

having a menu acts as a good cheat sheet. 😉

agile_geek11:06:58

my memory is not what it used to be so anything that helps that! #iamold

minimal13:06:09

cljr-helm is useful

agile_geek14:06:54

I use https://github.com/kai2nenobu/guide-key bound to certain key combo’s like C-c for cider.

tcrayford14:06:22

back when I was writing a clojure refactoring tool for emacs (https://github.com/tcrayford/clojure-refactoring RIP), I just had an ido menu for all the refactorings. Really liked that.

xlevus14:06:05

How do you make cider reload shit? I'm fucking around with a macro in one file, and doing C-c C-m on a expression in another file. But it hasn't picked up on any of the changes

tcrayford14:06:49

I think that approach works generally for all text editing stuff - if it's not commonly used, it should be in an ido menu. Really dislike emacs setups that have hundreds of keybindings bound under prefixes

otfrom14:06:45

small flurry of ldnclj mailing list sign ups

agile_geek15:06:47

@xlevus: C-c C-k to load the file in the buffer you’re in. C-c C-x to do cider-refresh everything.

agile_geek15:06:46

@otfrom: ‘small flurry’ is that a rodent or a marsupial?

xlevus15:06:48

what about window-choosing? Is there a way to tell which window cider will put stuff in? I still haven't worked it out, and at the moment its opening up buffers in windows i'm 'using'

xlevus15:06:08

@agile_geek: it could be a small mcdonalds icecream.

agile_geek15:06:39

@xlevus: bit commercial but I like it 😉

xlevus15:06:10

McDonalds. The eat-Freshmaker.

agile_geek15:06:11

@xlevus: on the cider window thing…not that I’m aware of. If you find owt let me know.

xlevus15:06:12

5 mins ago C-c C-m worked.

xlevus15:06:19

now it doesn't

xlevus15:06:10

oh now it does. yay

agile_geek15:06:04

C-c C-m is mapped to macroexpand-1 isn’t it? Are you just expanding a macro?

xlevus15:06:49

I think I had a compile error when starting the REPL and it didn't tell me

agile_geek15:06:55

@xlevus: If you don’t cider-load-file (C-c C-k) it probably isn’t evaluating the entire file so you could have compilation errors.

otfrom15:06:45

compile errors on REPL start usually end up in Messages

otfrom15:06:57

sigh, can't show the earmuffs on that

otfrom15:06:09

*Messages*

xlevus15:06:44

fuck it. back to vim. Too much funky shit in emacs.

otfrom15:06:02

xlevus: vim is an excellent editor. There are many who love it.

xlevus16:06:10

yeah. I thought I'd give emacs a go as cider (apparently) has better Clojure tooling

xlevus16:06:30

but ultimately I find it just does things I consider borderline retarded all the time

agile_geek16:06:19

@xlevus: I struggled with it but I wasn’t used to vim either (IDE’s like Eclipse/Netbeans/IDEA)

xlevus16:06:48

I'm just finding it too inconsistent. Sometimes Cider opens the macroexpansion in window 1, other times in 3, other times in 2.

xlevus16:06:07

sometimes clojure-mode activates, other times it doesn't.

tcrayford16:06:39

@xlevus: there's a way to override that ofc 😉

tcrayford16:06:19

the emacs way: horrible defaults, millions of lines of code in everybody's .emacs, and everybody rediscovers the same set of configurations over 20 years of using it

tcrayford16:06:42

(I used to be an emacs user, switched to vim ~1 year into writing clojure regularly)

xlevus16:06:47

well, I went straight to spacemacs. Which I kinda liked.

xlevus16:06:26

but trying to work out where to beat it into submission probably isn't worht the time when the end-game is clojure.

gjnoonan16:06:57

Trying spacemacs at the moment, the main reason to not stay with my other workflow in vim is I wanted to to try out Org-mode, and literate clj programming with it.

xlevus16:06:19

'literate' programming?

quentin16:06:53

it’s the extreme version of documenting your code

xlevus16:06:17

:( somebody turned off Giphy

gjnoonan16:06:02

@xlevus: yeah, it had to be replaced by the logbot 😕

agile_geek16:06:11

Talk by Karsten Schmidt at skills matter a few weeks ago actually demonstrates Literate Programming in amongst some really cool graphical rendering and art installations https://skillsmatter.com/explore?content=&amp;location=&amp;q=all+the+thi.ngs

gjnoonan16:06:14

Thanks @agile_geek I will have a look .. Has your talk gone online yet?