I'm trying to define a minor mode that rebinds M-q
to a modified version of fill-paragraph
. What I've written so far:
(defun myfun ()
(message "myfun called"))
(define-minor-mode mymode
"Test for minor mode keymap."
:lighter " MM"
:keymap '(([M-q] . myfun)))
doesn't work, as M-q
is still bound to fill-paragraph
when mymode
is active. Can anyone spot the issue with my code and tell me how to rebind that key properly?