I'm currently heavily using my-comma-leader-def (or space/semicolumn families) to define key bindings, and most of the time it works great. However, sometims I'm expecting certain shortcuts to be bound to different functions in different mode map instead of the global one. For example, I may bind ,gg to git-grep when programing, but may want to hit ,gg to go to head of file in pdf-mode.
Do you know how can I use my-comma-leader-def to make shortcuts for certain mode only?
I'm currently heavily using
my-comma-leader-def
(or space/semicolumn families) to define key bindings, and most of the time it works great. However, sometims I'm expecting certain shortcuts to be bound to different functions in different mode map instead of the global one. For example, I may bind,gg
to git-grep when programing, but may want to hit,gg
to go to head of file in pdf-mode.Do you know how can I use
my-comma-leader-def
to make shortcuts for certain mode only?