Open milkypostman opened 12 years ago
I don't think my previous suggestion is right. It'd probably work, but what you probably do want is,
(global-set-key (kbd "C-c x") (kbd "M-x"))
I had similar problems and this was the way to go. By changing the key-translation-map you change the key everywhere which is not want you want. Because in some modes you want C-x c
mapped completely different. It's not so much a problem here but I rebind things like C-h
and the previous suggestion was bad news bears.
Hm; I tried this and it turns C-c x into a no-op. This is on 24 from around the time of the first pretest.
I tried the previous suggestion of (define-key key-translation-map (kbd "C-x c") (kbd "M-x"))
It seems to work. Not sure why the latter doesn't. I have this in my init.el
and it works,
(global-set-key (kbd "C-w") (kbd "M-<backspace>"))
(global-set-key (kbd "C-h") (kbd "<backspace>"))
I think you're looking to do
(define-key key-translation-map (kbd "C-x c") (kbd "M-x"))