Emacs mode for Go?

user181548 picture user181548 · Nov 11, 2009 · Viewed 18k times · Source

Is there a suitable Emacs mode for Go? C mode doesn't work without semicolons. The best I have found is the JavaScript mode by Karl Landstrom, since JavaScript also doesn't require semicolons.

Answer

user181548 picture user181548 · Nov 11, 2009

Try misc/emacs/go-mode.el (web link) in the Go distribution.

If you are using Emacs 24 and marmalade repo, use M-x package-install <RET> go-mode to install it directly.