Fork me on GitHub
#emacs
<
2019-12-11
>
bozhidar07:12:57

@lilactown This works only when CIDER is running, clojure-mode itself doesn’t understand metadata.

lilactown15:12:47

I am connected via CIDER to a shadow-cljs process

lilactown15:12:53

I often switch between CLJ and CLJS in the REPL buffer though.

David Pham07:12:09

Is CLJ-refactor compatible with the newest Cider version?

bozhidar09:12:42

The master should be compatible. Not sure about the latest stable version.

zilti12:12:09

Does anyone else have the problem that there seems to be some auto-formatting going on now in clojure-mode buffers? As in, when I make a newline, it will almost immediately get deleted again, spaces I make get auto-deleted, etc...

dpsutton12:12:22

that sounds like you have an autosave with a hook to clean up whitespace on save

zilti12:12:27

Hm, my auto-save-hook is empty, and it only affects Clojure buffers

dpsutton13:12:33

any chance you have some kind of clean up buffer run on a timer?

yuhan13:12:12

maybe it's clojure-align-forms-automatically, also check your post-command-hook for anything suspicious

zilti13:12:10

clojure-align-forms-automatically is set to nil. Hm, that's so weird... The only automatic thing running in the background is that magit auto-revert thing, but that only gets triggered on manual save

Jcaw14:12:46

Is it putting cider-format-buffer on an idle timer in post-command-hook?

Jcaw14:12:22

Turn debug on entry on in cider-format-buffer, run-with-idle-timer and maybe run-with-timer, then trigger the behaviour. See if any ping.

zilti14:12:25

Must be cider, yes. As soon as I quit cider, it stops happening

bozhidar15:12:27

There has never been auto-formatting in CIDER. It must be some hook in your local setup, as suggested above.

zilti15:12:45

cider-format-buffer didn't get triggered when I turned on debug-on-entry, but run-with-idle-timer did, but that one only calls eldoc

Jcaw20:12:06

Maybe try cider--format-region (private version, two dashes)?

Chase20:12:53

any of you folks use this version of parinfer-rust: https://github.com/justinbarclay/parinfer-rust-mode It seems to be a fork of https://github.com/eraserhd/parinfer-rust which I love for vim because it "just works" in smart mode. I've never cared for the non "smart" mode versions of parinfer that I've tried before but hoping this works. But I can't get it to work...