Fork me on GitHub
#emacs
<
2016-05-13
>
kneiva10:05:36

How can I run a function without parameters straight from code buffer, so that the result is shown in jacked in REPL?

bja13:05:59

@kneiva: if you're using spacemacs, by default it's bound to SPC m s f. If you're not using spacemacs, their source code has a function to do this: https://github.com/syl20bnr/spacemacs/blob/master/layers/%2Blang/clojure/packages.el#L36

kneiva15:05:40

Thanks. I’m using CIDER, is there similar functionality in it?

zane16:05:23

@kneiva: You can just copy / paste that function into your emacs config. To my knowledge its only dependency is CIDER.

kneiva17:05:44

Ok, great, thanks!

brian_mingus19:05:26

here are a set of methods for taking control of where emacs pops buffers, restoring your window layout and navigating between windows much more quickly. suggestions / improvements welcome https://gist.github.com/brianmingus/5322e49ab43a6cce131d37ffe47bf802