help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Disabling M-q


From: B. T. Raven
Subject: Re: Disabling M-q
Date: Fri, 17 May 2013 23:43:46 -0500
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:15.0) Gecko/20120907 Thunderbird/15.0.1

> A friend asked how to disable M-q. My first thought was:
>     (local-unset-key (kbd "\M-q"))
> or
>     (local-set-key (kbd "M-q") nil)
> 
> But both did not work. I am now using:
>     (local-set-key (kbd "M-q") "")
> 
> and this works. Is this the best way, or is there a better way?
> 

How about either

(global-unset-key [(meta q)]

or

(local-unset-key [(meta q)]

??



reply via email to

[Prev in Thread] Current Thread [Next in Thread]