I am writing an elisp function that permanently binds a given key to a given command in the current major mode\'s keymap. For example,
(define-key pytho
The function local-set-key exists for the purpose of binding keys in the current local keymap.
local-set-key