Add key binding to run gofmt manually

This commit is contained in:
Jon Erik D Suero 2018-07-26 20:01:14 -04:00 committed by Sylvain Benner
parent 166f6768ae
commit ff555d80b4
2 changed files with 2 additions and 0 deletions

View File

@ -182,6 +182,7 @@ You have a few options to ensure you always get up to date suggestions:
| Key Binding | Description |
|---------------+---------------------------------------------------------------------------------------|
| ~SPC m = ~ | run "go fmt" |
| ~SPC m e b~ | go-play buffer |
| ~SPC m e d~ | download go-play snippet |
| ~SPC m e r~ | go-play region |

View File

@ -121,6 +121,7 @@
(spacemacs/declare-prefix-for-mode 'go-mode "mt" "test")
(spacemacs/declare-prefix-for-mode 'go-mode "mx" "execute")
(spacemacs/set-leader-keys-for-major-mode 'go-mode
"=" 'gofmt
"eb" 'go-play-buffer
"ed" 'go-download-play
"er" 'go-play-region