Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cljfmt for ClojureScript #13

Open
humorless opened this issue May 21, 2020 · 0 comments
Open

cljfmt for ClojureScript #13

humorless opened this issue May 21, 2020 · 0 comments

Comments

@humorless
Copy link
Owner

humorless commented May 21, 2020

  1. install cljfmt
  2. in vim, use the command
:%! cljfmt 
  1. add this to ~/.vimrc
function! Cljfmt()
 !cljfmt fix %
 " :e is to force reload the file after it got formatted.
 :e
endfunction

autocmd BufWritePost *.clj call Cljfmt()
autocmd BufWritePost *.cljs call Cljfmt()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant