summaryrefslogtreecommitdiff
path: root/settings/setup-go-mode.el
diff options
context:
space:
mode:
authorbenj <benj@rse8.com>2019-04-16 20:34:17 -0700
committerbenj <benj@rse8.com>2019-04-16 20:34:17 -0700
commitfaeeda87a3a4f615ba57411175581265eddc1a7c (patch)
tree267e1508e6953dde6886916e3c6dcb0217380229 /settings/setup-go-mode.el
parentff2fb190c5b4a80df3a70c07425519c43c664319 (diff)
downloademacs-faeeda87a3a4f615ba57411175581265eddc1a7c.tar
emacs-faeeda87a3a4f615ba57411175581265eddc1a7c.tar.gz
emacs-faeeda87a3a4f615ba57411175581265eddc1a7c.tar.bz2
emacs-faeeda87a3a4f615ba57411175581265eddc1a7c.tar.lz
emacs-faeeda87a3a4f615ba57411175581265eddc1a7c.tar.xz
emacs-faeeda87a3a4f615ba57411175581265eddc1a7c.tar.zst
emacs-faeeda87a3a4f615ba57411175581265eddc1a7c.zip
flycheck; go; rust; org; treemacs
Diffstat (limited to 'settings/setup-go-mode.el')
-rw-r--r--settings/setup-go-mode.el8
1 files changed, 8 insertions, 0 deletions
diff --git a/settings/setup-go-mode.el b/settings/setup-go-mode.el
new file mode 100644
index 0000000..ff9ac86
--- /dev/null
+++ b/settings/setup-go-mode.el
@@ -0,0 +1,8 @@
+(add-hook 'go-mode-hook
+ (lambda ()
+ (add-hook 'before-save-hook 'gofmt-before-save)
+ (setq tab-width 4)
+ (setq indent-tabs-mode 1)))
+
+(provide 'setup-go-mode)
+;;; setup-go-mode.el ends here