Re: standalone indentation tool

2011-08-09 Thread Philipp Steinwender
thanks for that lars.
it works better. emacs does restart for each file, but it is faster than 
before because it only evaluates the code without ui.

-- 
You received this message because you are subscribed to the Google
Groups Clojure group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Re: standalone indentation tool

2011-08-09 Thread Philipp Steinwender
sorry i didn't check the result. with --batch something went wrong. the 
indentation gets weird.

-- 
You received this message because you are subscribed to the Google
Groups Clojure group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Re: standalone indentation tool

2011-08-08 Thread Philipp Steinwender
thank you, that worked!

to re-indent all source files, I use it as bash script like:
$ find ./src ./test -name '*.clj' | xargs -I {} emacs --eval (progn (setq 
make-backup-files nil) (find-file \{}\) (indent-region (point-min) 
(point-max)) (untabify (point-min) (point-max)) (save-buffer) (kill-emacs))

it works, but it opens and closes emacs quite often. next thing for me will 
be to let emacs find all clj files and open and close them.

-- 
You received this message because you are subscribed to the Google
Groups Clojure group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

standalone indentation tool

2011-08-07 Thread Philipp Steinwender
hi!

Is there a tool available that does indentation of clojure code and does not 
depend on an editor/IDE?

we work on the same code together with different editors 
(eclipse+counterclockwise and emacs). We often reindent the other's code 
what leads to changes when we merge our commits with git.
one way to fix this would be to reindent all source files with an indepedent 
tool before commiting.

Does anybody have similar problems?

Thanks in advance

-- 
You received this message because you are subscribed to the Google
Groups Clojure group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en