Though I know how to set a global key-binding in Emacs, I find it hard to even Google out the code for a local (minor-mode specific) key-binding. For instance, I have this code
You need to identify the key map for that mode (for example, LaTeX-mode-map
) and use the function define-key
. As an example, along with activating outline-minor-mode
within LaTeX mode, I have:
(define-key LaTeX-mode-map [(tab)] 'outline-cycle))
In this case the major mode (LaTeX) holds the key binding, but there is also an outline-minor-mode-map
.