mirror of
https://github.com/jimeh/.emacs.d.git
synced 2026-02-19 13:46:41 +00:00
19 lines
423 B
EmacsLisp
19 lines
423 B
EmacsLisp
(defun customizations-for-go-mode ()
|
|
(interactive)
|
|
(flyspell-prog-mode)
|
|
(flycheck-mode)
|
|
(linum-mode t)
|
|
(fci-mode)
|
|
(hs-minor-mode 1)
|
|
(auto-complete-mode)
|
|
(whitespace-mode)
|
|
(subword-mode)
|
|
(setq tab-width 4)
|
|
(define-key go-mode-map (kbd "RET") 'newline-and-indent)
|
|
)
|
|
|
|
(add-hook 'go-mode-hook 'customizations-for-go-mode)
|
|
|
|
(setq gofmt-command "goimports")
|
|
(add-hook 'before-save-hook #'gofmt-before-save)
|