From d7101a46f4078b00e280d046d6f205cd3bad4e6e Mon Sep 17 00:00:00 2001 From: John Doty Date: Fri, 1 Jul 2022 09:04:02 -0400 Subject: [PATCH] go stuff maybe --- .emacs.d/custom.el | 5 +++-- .emacs.d/init.el | 4 +++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.emacs.d/custom.el b/.emacs.d/custom.el index e9620b5..d23c871 100644 --- a/.emacs.d/custom.el +++ b/.emacs.d/custom.el @@ -17,8 +17,8 @@ '(comint-prompt-read-only t) '(comint-scroll-to-bottom-on-input t) '(company-backends - '(company-tasks company-reviewers company-bbdb company-nxml company-css company-capf - (company-dabbrev-code company-keywords))) + '(company-bbdb company-nxml company-css company-capf + (company-dabbrev-code company-keywords))) '(company-minimum-prefix-length 1) '(css-indent-offset 2) '(custom-safe-themes t) @@ -50,6 +50,7 @@ '(mouse-wheel-scroll-amount '(1 ((shift) . 5) ((control)))) '(nrepl-use-ssh-fallback-for-remote-hosts t) '(omnisharp-server-executable-path nil) + '(org-adapt-indentation t) '(org-export-backends '(ascii html icalendar latex md odt)) '(org-export-with-toc nil) '(org-hide-leading-stars t) diff --git a/.emacs.d/init.el b/.emacs.d/init.el index ac2e92f..686a025 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -820,7 +820,9 @@ Or, uh, Objective C, I guess." ;; Go (#golang) Mode ;; ================================================================= (use-package go-mode :ensure t - :mode "\\.go\\'") + :mode "\\.go\\'" + :config + (add-hook 'before-save-hook 'gofmt-before-save)) ;; (require 'auto-complete-config) ;; (require 'go-autocomplete)