mirror of
https://github.com/jimeh/.emacs.d.git
synced 2026-02-19 13:46:41 +00:00
17 lines
426 B
EmacsLisp
17 lines
426 B
EmacsLisp
(defun customizations-for-go-mode ()
|
|
(interactive)
|
|
(flyspell-prog-mode)
|
|
(flycheck-mode)
|
|
(linum-mode t)
|
|
(fci-mode)
|
|
(auto-complete-mode)
|
|
(whitespace-mode)
|
|
(subword-mode)
|
|
(setq tab-width 4)
|
|
(setq highlight-indentation-offset 4)
|
|
(highlight-indentation-mode)
|
|
(highlight-indentation-current-column-mode))
|
|
|
|
(add-hook 'go-mode-hook 'customizations-for-go-mode)
|
|
(add-hook 'before-save-hook #'gofmt-before-save)
|