I am new to emacs and emacs-lisp so i don't have any idea how to write extensions to emacs but i came accross awesome extensions like 'pretty-lambdas' which swaps
(lambda (x) (+ x x)) ----> (λ (x) (+ x x))
In emacs-lisp mode. I was able to make it work for clojure such that i get :
(fn [x] (+ x x)) -----> (λ [x] (+ x x))
I would like to do the same for javascript, such that In javascript mode instead of
function(x){}
I get . f(x) {}
how do i achieve this? Thanks.