Add key binding to run gofmt manually
This commit is contained in:
parent
166f6768ae
commit
ff555d80b4
|
@ -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 |
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue