Redefine RET key for go-mode to always indent

This commit is contained in:
2014-07-26 09:05:54 +01:00
parent 971440d67c
commit 920435531e

View File

@@ -8,7 +8,7 @@
(whitespace-mode)
(subword-mode)
(setq tab-width 4)
(define-key go-mode-map (kbd "RET") 'electric-newline-and-maybe-indent)
(define-key go-mode-map (kbd "RET") 'newline-and-indent)
)
(add-hook 'go-mode-hook 'customizations-for-go-mode)