From 3e78a8349f320ee6d505700e0e9403e7ad41798e Mon Sep 17 00:00:00 2001 From: GrĂ©goire DuchĂȘne Date: Sat, 20 Feb 2021 16:09:18 +0000 Subject: emacs: Pass ``-local go.awhk.org'' to goimports --- emacs/init.el | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'emacs/init.el') 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) -- cgit v1.2.3-70-g09d2