Tong Sun <
sunto...@gmail.com> writes:
> (setq-default
> tab-width 2
> standard-indent 2
> indent-tabs-mode nil) ; makes sure tabs are not used.
>
> Now the problem is how to hook it up into ghe go-mode, instead of
> affecting all of my other modes.
While still echoing everyone else's suggestion to use the same
formatting everyone else uses, I'll give you a bit of my .emacs you can
poison to your heart's content :)
(defun my-go-mode-hook ()
(add-hook 'before-save-hook 'gofmt-before-save)
(setq tab-width 8 indent-tabs-mode 1))
(add-hook 'go-mode-hook 'my-go-mode-hook)
--
dustin