Search code examples
emacsspacemacs

How to add a custom keybindings to a specified layer of Spacemacs?


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


Solution

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