I know that it should be simple to set a binding. As quoted from elisp reference manual:
(local-set-key key binding)
(define-key (current-local-map) key binding)
(local-set-key key binding)
(define-key (current-local-map) key binding)
(global-set-key [s-tab] 'slime-complete-symbol) ; the "s" refers to the key with a windows logo
(global-set-key [24 right] 'previous-buffer) ; 24 means C-x
(global-set-key [24 C-right] 'previous-buffer)
(global-set-key [24 left] 'next-buffer)
(global-set-key [24 C-left] 'next-buffer)(setq mew-summary-mode-hook '(lambda ()
(local-set-key "\C-x\C-y" 'mew-popmail)))rubing wrote:@gugamilare.
I don't want to set a global key. I only want my functions to be part of the local mode map for mew (my mailing program). As I just shared above I found out how to do it. However, I am still clueless where to find the name of a given mode's keymap
rubing wrote:Paul,
As it suggests in the manual, most local modes have named keymaps: http://www.gnu.org/software/emacs/manual/html_node/emacs/Local-Keymaps.html
Users browsing this forum: No registered users and 0 guests