diff options
| author | Grégoire Duchêne <gduchene@awhk.org> | 2021-02-20 16:09:18 +0000 |
|---|---|---|
| committer | Grégoire Duchêne <gduchene@awhk.org> | 2021-02-20 16:11:46 +0000 |
| commit | 3e78a8349f320ee6d505700e0e9403e7ad41798e (patch) | |
| tree | 952a56e540436fc2aee69e29cc0460fea5b8851f | |
| parent | 6459c106dbe9cb2311d5d9144d0e10d0d32c5a89 (diff) | |
emacs: Pass ``-local go.awhk.org'' to goimports
| -rw-r--r-- | emacs/init.el | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/emacs/init.el b/emacs/init.el index b584bea..75966ea 100644 --- a/emacs/init.el +++ b/emacs/init.el @@ -90,7 +90,8 @@ (use-package go-mode :init (when (executable-find "goimports") - (setq gofmt-command "goimports")) + (setq gofmt-args '("-local" "go.awhk.org") + gofmt-command "goimports")) (add-hook 'go-mode-hook (lambda () (setq tab-width 2) @@ -147,8 +148,8 @@ (scroll-bar-mode -1))) (add-hook 'sh-mode-hook (lambda () (setq-local sh-basic-offset 2))) +(put 'dired-find-alternate-file 'disabled nil) + (source-if-exists "dotfiles-${UNAME}/emacs/init.el") (source-if-exists "dotfiles-${DOMAIN}/emacs/init.el") (source-if-exists "dotfiles-${HOST}/emacs/init.el") - -(put 'dired-find-alternate-file 'disabled nil) |
