The secret island of emacs howtos
Word on the street is emacs is teh hotness for lisp hacking. I’m taking a serious look at clojure, which is a lisp that incorporates a lot of what I like about erlang and runs on the JVM. So naturally, I want to see if emacs is all that hype.
I’m having a problem though. I can’t find the secret island of emacs howtos, where someone has written a nice one-page article on how to do clojure (or any lisp) hacking in emacs and take advantage of the most awesome good parts. I realize that covering all the cool things would probably take a few hundred pages. I don’t have time to learn all the cool things anyway. I just need the most cool things. The gateway drugs if you will.
In specific, I’m looking for:
- Syntax highlighting
- Automatic indentation
- Paren matching
- Have a REPL window
- Evaluate this thing under the cursor
And it should all be automatic. I shouldn’t have to remember and type 80 characters. The syntax highlighting/indentation should be automagic, and the REPL should be a few memorable keystrokes or in a menu (I don’t want to type M-X up up down down left right left right B A every time I want a REPL).
I’ll bake a loaf of sourdough for anyone that writes an article for the emacs+clojure newbie.
June 28th, 2008 at 22:50
I’ll investigate this if you don’t get any other responses, but not tonight.
June 29th, 2008 at 14:08
Put these into your .emacs file:
; paren matching:
(show-paren-mode 1)
; syntax hilighting:
(global-font-lock-mode 1)
Emacs+Lisp is usually handled with SLIME, but I don’t know if that works with Clojure (it’s not listed on the SLIME page).
June 29th, 2008 at 14:09
Suppose I should have used the preview button: