Next: , Previous: , Up: Writing Go in Emacs   [Index]


A.3 Installing Go-Mode

Obtain go-mode from GitHub and generate go-mode-load.el

M-x update-file-autoloads RET go-mode.el

Put both go-mode.el and go-mode-load.el into a directory of your choice, add it to Emacs’s load paths via

(add-to-list 'load-path "/place/where/you/put/it")
(require 'go-mode-load)

This will install autoload entries and associate *.go files with go-mode.