Installing cljfmt replaces all files with cljfmt help text
- Dominant language
- Emacs Lisp
- Stars
- 22.7k
- Forks
- 3.1k
- Avg merge
- 10h 46m
- Merged PRs (30d)
- 4
Description
### I confirm that...
- [X] I have searched the [issue tracker](https://github.com/doomemacs/doomemacs/issues), [documentation](https://docs.doomemacs.org), [FAQ](https://docs.doomemacs.org/-/faq), [Discourse](https://discourse.doomemacs.org), and [Google](https://google.com), in case this issue has already been reported/resolved.
- [X] I have read "[How to Debug Issues](https://doomemacs.org/d/how2debug)", and will use it to provide as much information about this issue as possible.
- [X] The issue can be reproduced on the **latest** available commit of Doom.
- [X] The issue can be reproduced on a stable release of Emacs, such as 27, 28, or 29. *(Unstable versions end in .50, .60, or .9x)*
### Expected behavior
Saving a .clj file should replace its contents and update the buffer with cljfmt'd content
### Current behavior
Saving a file with :editor (format +onsave) replaces all clj files with the help text of cljfmt.
```
Usage:
cljfmt (check | fix) [PATHS...]
Options:
-h, --help
--version
-q, --quiet
-v, --verbose
--[no-]parallel false
--project-root PROJECT_ROOT .
--file-pattern FILE_PATTERN \.clj[csx]?$
--config CONFIG_FILE
--[no-]ansi true
--[no-]indentation true
--[no-]remove-multiple-non-indenting-spaces false
--[no-]remove-surrounding-whitespace true
--[no-]remove-trailing-whitespace true
--[no-]insert-missing-whitespace true
--[no-]remove-consecutive-blank-lines true
--[no-]split-keypairs-over-multiple-lines false
--[no-]sort-ns-references false
--function-arguments-indentation STYLE community STYLE may be community, cursive, or zprint
```
cljfmt --version
I am able to run the file manually on the file
```
$ cljfmt fix core.clj
$
```
### Steps to reproduce
* Have :editor (format +onsave) in your init.el file.
* Save a file
### System Information
https://pastebin.com/XwAAAijg
Contributor guide
Assessment
This issue has not been assessed yet.