Config Go Develop Environment in Emacs
Contents
If you are under Windows, you may need to config golang develop environment manually.
Get Emacs go-mode from misc/emacs/, there are two files: go-mode-load.el and go-mode.el.
Put them into your Emacs load-path, then add following code to .emacs:
;; golang mode (add-to-list ’load-path “~/emacs/site-lisp/go-mode”) (require ‘go-mode-load) (require ‘go-mode)
Then you can open go source file with syntax highlight now.
If you are under Ubuntu/Debian, the easiest way to install golang-mode is by:
sudo apt-get install golang-mode
After this installation, retart your Emacs then you can edit go source file with syntax highlight.
Author Watterry
LastMod 2014-04-08