Emacs mode for Go?
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.
If your Go installs to /usr/local/go
then add the following to your .emacs
file.
;; go mode
(setq load-path (cons "/usr/local/go/misc/emacs" load-path))
(require 'go-mode-load)
Update from 2014 for Linux users
You can now download the golang-mode for Emacs from your package manager:
- Fedora:
yum install emacs-golang
- Debian:
apt-get install golang-mode
- Ubuntu:
apt-get install golang-mode
I only checked on Fedora, but the package is automatically installed and you have nothing to do except enjoying your new golang mode! And it is also updated as any other package of your system.
There are probably packages on other Linux distributions too.