Skip to content

Instantly share code, notes, and snippets.

@wunki
Created January 8, 2015 12:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wunki/cc8cb473392f09156ac5 to your computer and use it in GitHub Desktop.
Save wunki/cc8cb473392f09156ac5 to your computer and use it in GitHub Desktop.
Go settings.
;; configuration
(add-hook 'go-mode-hook
'(lambda()
(setq c-basic-offset 4)
(setq tab-width 4)
(setq indent-tabs-mode t)
(local-set-key (kbd "M-.") 'godef-jump)
(local-set-key (kbd "C-c C-r") 'go-remove-unused-imports)
(local-set-key (kbd "C-c i") 'go-goto-imports)
(local-set-key (kbd "C-c d") 'godoc)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment