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.
相关问题
- Symbol's function definition is void: declare-
- Golang mongodb aggregation
- How to flatten out a nested json structure in go
- how to install private repo using glide golang
- How can I set the SVN password with Emacs 23.1 bui
相关文章
- Can I run a single test in a suite?
- ess-rdired: I get this error “no ESS process is as
- How to check if a request was cancelled
- Is it possible to implement an interface with unex
- Emacs/xterm color annoyance on Linux
- How to access value of first index of array in Go
- Embedded Interface
- Does learning one Lisp help in learning the other?
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.Read Writing Go in Emacs and its follow-up, written by Dominik Honnef, the author of the official
go-mode
.There he explains the story of
go-mode
and ways to install it, how to read Go documentation from inside Emacs, how to manage import statements of Go files in Emacs, how to setup autocomplete, on-the-fly syntax checking, snippets, and a lot of other super useful features for developing Go in Emacs.Update from 2014 for Linux users
You can now download the golang-mode for Emacs from your package manager:
yum install emacs-golang
apt-get install golang-mode
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.
Yes, there is. It is in the source code, inside the
misc/emacs
dir.