Re: Emacs: function for automatic symbols declaration

2009-03-19 Thread Elena
The code is entirely misaligned. Reposted it as in the files section: http://groups.google.com/group/clojure/web/clj-auto-declare.el Tabs are too wide, I use four spaces wide tabs. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the G

Emacs: function for automatic symbols declaration

2009-03-19 Thread Elena
Hi, I managed to put together an Emacs Lisp function to automatically declare all defined symbols in a Clojure source file. The algorithm is crude: it doesn't understand syntax, it just parses lines beginning with either "(def " or "(defn ". A single line beginning with "(declare " macro must a