EpsilonVector
EpsilonVector

Reputation: 4053

How do I rebind ctrl ret in Emacs?

I can't seem to rebind ctrl-ret in Emacs. I searched Google extensively, but in the few cases where there was some example of how to rebind it, that example didn't work. I want to unset the current binding, and replace it with a new one. How do I do this?

Upvotes: 2

Views: 511

Answers (1)

Luke Girvin
Luke Girvin

Reputation: 13442

I searched Google extensively, but in the few cases where there was some example of how to rebind it, that example didn't work.

What did you try that didn't work? This works for me in Emacs 24 on Windows 7:

(global-set-key [(control return)] 'foobar)

Update: cua-mode uses define-key, try this instead:

(define-key cua-global-keymap cua-rectangle-mark-key 'foobar)

Upvotes: 4

Related Questions