mirror of
https://github.com/jimeh/.emacs.d.git
synced 2026-02-19 13:46:41 +00:00
Enable RET to indent line if needed in go-mode
This commit is contained in:
@@ -7,7 +7,9 @@
|
||||
(auto-complete-mode)
|
||||
(whitespace-mode)
|
||||
(subword-mode)
|
||||
(setq tab-width 4))
|
||||
(setq tab-width 4)
|
||||
(define-key go-mode-map (kbd "RET") 'electric-newline-and-maybe-indent)
|
||||
)
|
||||
|
||||
(add-hook 'go-mode-hook 'customizations-for-go-mode)
|
||||
(add-hook 'before-save-hook #'gofmt-before-save)
|
||||
|
||||
Reference in New Issue
Block a user