@Feng
It doesn't clean up the way John is looking to clean some code like this:
(defun func1 [a b c d] (func5 (let [f (func3 c)] (func2 a b f)) (let
[e 5] (func4 c d e
On Tue, Feb 12, 2013 at 9:11 AM, Feng Shen shen...@gmail.com wrote:
(defun indent-buffer ()
(interactive)
C-u M-x indent-pp-sexp
On Thu, Feb 14, 2013 at 6:06 PM, Mayank Jain firesof...@gmail.com wrote:
@Feng
It doesn't clean up the way John is looking to clean some code like this:
(defun func1 [a b c d] (func5 (let [f (func3 c)] (func2 a b f)) (let
[e 5] (func4 c d e
On Tue, Feb 12,
Clojure Users,
I'm relatively new to clojure and wanted to get some workflow advice.
I often find myself staring at something like this:
(defun func1 [a b c d] (func5 (let [f (func3 c)] (func2 a b f)) (let
[e 5] (func4 c d e
and wishing for a function to automatically and idiomatically
On Feb 11, 2013, at 6:28 PM, John Fries wrote:
How are people currently handling this situation? Is it part of most
people's clojure/emacs workflow to
1) Just insert the newlines by hand? (perhaps I'm the only one finding
this repetitive)
I find inserting newlines by hand less repetitive
(defun indent-buffer ()
(interactive)
(indent-region (point-min) (point-max)))
(defun cleanup-buffer ()
(interactive)
(indent-buffer)
(untabify-buffer)
(delete-trailing-whitespace))
;; bind to other key if you like(global-set-key (kbd M-q) 'cleanup-buffer)
cleanup-buffer is very