1

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.

dkim
  • 3,930
  • 1
  • 33
  • 37
rottweiler
  • 229
  • 1
  • 7
  • Ahh, I the space in "\C-x m" makes it not work. However, if I use "\C-xm", it unsets it like I expect. And, for some reason I didn't see my typo on the second line of code: It should be (kbd "C-x m"). This also fixed it. – rottweiler Oct 04 '12 at 06:07

1 Answers1

2

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)
dkim
  • 3,930
  • 1
  • 33
  • 37