Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

To make emacs more osx-esque, I'd ike to reassign C-x 5 2 (switch frames) to C-` (I have command mapped to C-). What should I add to my .emacs profile to do this?

EDIT Sorry - meant C-x 5 o (switch frames), but the answers are still relevant...

share|improve this question
up vote 1 down vote accepted

Do C-h k followed by C-x 5 2 to get the name of the function that You want to reassign. Do M-x global-set-key followed by C-backtick and then type the name of the function. Do C-x ESC ESC and copy the lisp expression to your .emacs

share|improve this answer

Put this line of Elisp code into your .emacs startup file:

(define-key global-map (kbd "C-`") 'make-frame-command)

Beware, that C-` is not a real character, so this will only work when Emacs is using its graphical interface.

share|improve this answer
I found that I can get at ` using the following: (global-set-key (quote [67108960]) (quote other-frame)) – jd444 May 1 '12 at 20:09
While that syntax works, it's not very maintainable. That's why the kbd function was created. In fact, if you evaluate (kbd "C-`"), the value is [67108960]. That big number is just Emacs' internal character code for C-`. – Fran May 2 '12 at 17:33

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.