Question

I am wondering if its possible to disable mail in emacs 23. Basically, I occasionally press C-xm and it annoys me that it will create a Mail folder in my home directory. (I also want to remap this to 'execute-extended command).

I have tried

(global-unset-key "\C-x m")
(global-set-key (kbd "C-c m") 'execute-extended-command) 

but it doesn't seem to affect anything.

Was it helpful?

Solution

This will set the binding of C-xm to the execute-extended-command function:

(global-set-key "\C-xm" 'execute-extended-command)

or

(global-set-key [?\C-x ?m] 'execute-extended-command)

or

(global-set-key (kbd "C-x m") 'execute-extended-command)
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top