Emacs for Go development
I use Emacs for Go development and I really like it.
To set up Emacs for Go I use Guillaume J. Charmes’ setup as a base. I do additional tweaks and modifications to that setup. His setup is for Macintosh and I tried running it on my Antergos Linux at home but it didn’t work out of the box. Antergos is Arch based Linux distro that I use and recommend.
To setup on Mac start by cloning Guillaume’s repo:
|
Edit the .Brewfile and remove applications that should not be installed.
Run the initialization script:
The basic setup is now done and we can test it by verifying that the autocomplete feature works:
After that I add other Emacs modules that I like and use.
I use helm-git-grep.el a lot. It helps me in finding things fast. I use the following key binding for Helm Git Grep:
|
And here it is - the power of Helm Git Grep:
I also use Helm Recentf a lot.
I cannot live without Org mode. I setup it like this:
|
The shell switcher module is another thing that I cannot live without:
|
Ace Jump helps me in using only the keyboard when navigating source code:
|
And I also setup the following key bindings:
Emacs is amazing piece of engineering. Start using it now.