From 693b0eb5490ac5b81216d4461cec35a46c44dcda Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Fri, 25 Mar 2022 13:24:08 -0700 Subject: prog: tweak configuration for go Add a few bindings to run the tests, and make the test output more verbose by default. --- emacs/custom/my-prog.el | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'emacs') diff --git a/emacs/custom/my-prog.el b/emacs/custom/my-prog.el index 8994060..9146d2d 100644 --- a/emacs/custom/my-prog.el +++ b/emacs/custom/my-prog.el @@ -109,12 +109,25 @@ :after (eglot) :ensure t :hook ((before-save . gofmt-before-save)) + :bind (:map go-mode-map + ("C-c C-n" . go-run) + ("C-c C-c" . go-coverage) + ("C-c ." . go-test-current-test) + ("C-c C-f" . go-test-current-file) + ("C-c C-p" . go-test-current-project)) + :commands (go-run + go-coverage + go-test-current-test + go-test-current-file + go-test-current-project) :custom (tab-width 4)) (use-package gotest + :ensure t :after (go-mode) - :ensure t) + :custom + (go-test-verbose t)) (use-package lisp-mode :bind -- cgit 1.4.1