How do I make equalprg
match my custom indent settings? They are like:
let b:did_indent = 1
set expandtab
set shiftwidth=2
set softtabstop=2
set autoindent
And they format the code to this (actually I have to add the 2 extra spaces myself):
(. fs (writeFile "test.txt" "some text" (fn [err]
(. res(send (if err "error" "done")))
And when I use =
, this is what I got:
(. fs (writeFile "test.txt" "some text" (fn [err]
(. res(send (if err "error" "done")))
How do I keep the first form?
Also, would it be possible to add the leading spaces automatically then, because I suppose they would be scrapped?
(fn [err] ...)
on the next line? I generally prefer function/lambda expressions in lisps to be aligned, which is probably what clojure'sindentexpr
is trying to do