diff options
author | Franck Cuny <franck@fcuny.net> | 2022-03-25 13:24:08 -0700 |
---|---|---|
committer | Franck Cuny <franck@fcuny.net> | 2022-03-25 13:24:08 -0700 |
commit | 693b0eb5490ac5b81216d4461cec35a46c44dcda (patch) | |
tree | 53ffda8d05f54a8aca6c48de94cb66a01c8d0020 /emacs | |
parent | UI: simplify the theme configuration (diff) | |
download | emacs.d-693b0eb5490ac5b81216d4461cec35a46c44dcda.tar.gz |
prog: tweak configuration for go
Add a few bindings to run the tests, and make the test output more verbose by default.
Diffstat (limited to 'emacs')
-rw-r--r-- | emacs/custom/my-prog.el | 15 |
1 files changed, 14 insertions, 1 deletions
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 |