In emacs "M-q" does not work?

850 Views Asked by At

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.

2

There are 2 best solutions below

6
On BEST ANSWER

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.

0
On

Place this line in your .emacs file and restart emacs.

(global-set-key "\M-q" 'fill-paragraph)