Check out my final solution at
https://github.com/suntong001/emacs.d/
especially,
https://github.com/suntong001/emacs.d/blob/master/lisp/init-code0p.el
On Thu, Feb 19, 2015 at 10:55 PM, gihan karunarathne <
Post by gihan karunarathneGreat. It is formatting with indent size 2, but it uses tabs instead
spaces (on Emacs 24.4). How to avoid it ? (means replace tabs with spaces)
(add-hook 'go-mode-hook
(lambda ()
(add-hook 'before-save-hook 'gofmt-before-save)
(setq-default)
(setq tab-width 2)
(setq standard-indent 2)
(setq indent-tabs-mode nil)))
Thank you in advance!
Post by magne-nkzjiHSqi6rZJqsBc5GL+(add-hook 'go-mode-hook
(lambda ()
(setq-default)
(setq tab-width 2)
(setq standard-indent 2)
(setq indent-tabs-mode nil)))
--
You received this message because you are subscribed to a topic in the
Google Groups "golang-nuts" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/golang-nuts/c176nKcyoDQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.