3

For example, I want to bind M . to godef-jump, how can I do this for only the go layer?

handora
  • 559
  • 5
  • 14

1 Answers1

2

Try spacemacs/set-leader-keys-for-major-mode. Just set the keybinding for go-mode

Enze Chi
  • 1,733
  • 17
  • 28
  • Is there a convention on where or which file to write the code? – handora Oct 24 '18 at 00:47
  • I am not sure which is the "convention" way. For me, I just create my private layer such as "goplus" and add it to packages.el and add "go" layer to layers.el – Enze Chi Oct 25 '18 at 01:41