In emacs “M-q” does not work?
Question
I'm using GNU Emacs 23.3.1. When I press "M-q" emacs says "M-q is undefined". How can I solve this issue? Thanks.
Solution
Start Emacs with the -Q
option, and see if the problem persists by typing C-h k M-q. If it turns out that M-q is in fact bound to fill-paragraph
that way, then something in your init file apparently undoes that key binding.
You could then comment out some of your customizations in the .emacs file in a "binary search" style to find which one of them is responsible for removing said key binding.
OTHER TIPS
Place this line in your .emacs file and restart emacs.
(global-set-key "\M-q" 'fill-paragraph)
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow