Fork me on GitHub
#emacs
<
2018-09-17
>
plexus13:09:07

It seems current versions of clj-refactor will eagerly load all files in your project when the process starts up... is there any way to turn this off?

benedek13:09:04

if memory serves right it is off by default. you might have something in your config to turn it on

benedek13:09:10

give me a sec

benedek13:09:46

my guess would be that cljr-warn-on-eval is set to nil in your config plexus

plexus13:09:08

ah yes, you're right. When I do an operation and it needs to analyze the code I want it to just do it without asking, but it shouldn't load all code at startup.

benedek13:09:22

hold on a bit

benedek13:09:29

you are right too ;)

benedek13:09:19

you still can have this set to nil but then you need to set cljr-eagerly-build-asts-on-startup to nil

benedek13:09:37

this indeed defaults to t

plexus13:09:24

aha, good to know. Thanks for looking that up!

plexus13:09:19

A question for the Spacemacs users here, recently we made Sayid opt-in in the Clojure layer, and @bozhidar suggested doing the same for clj-refactor. Does that seem like a good idea? ( šŸ‘ for making it opt-in, šŸ‘Ž for keeping the current always-on default)

šŸ‘ 4
plexus13:09:31

This means you would have to do this to get clj-refactor back:

dotspacemacs-configuration-layers
'(...
 (clojure :variables clojure-enable-clj-refactor t))

benedek13:09:53

there seems to be a #spacemacs channel

benedek13:09:02

relatively active?!

benedek13:09:21

i am not following it so no real idea...

jeff.terrell13:09:17

Yep, it's fairly active. I'm in it. And I don't feel strongly either way about making clj-refactor opt-in.

vemv15:09:14

Can I do something equivalent to git show 705e35b0 but that will use Clojure syntax highlighting? I was thinking of either: ā€¢ using Emacs as a pager (current attempt will complain: emacs: standard input is not a tty) ā€¢ Searching a magit/etc solution (not experienced with magit myself)

vemv15:09:53

another very similar command I'm targeting to replace would be git diff master. With both, I want to code-review myself

vemv15:09:56

Guess that if this ticket exists, then it's hard šŸ™‚ https://github.com/magit/magit/issues/2942