Ask Different is a question and answer site for power users of Apple hardware and software. Join them; it only takes a minute:

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

In PC, the utility of xkeymacs.exe enables one to use emacs key in every case. Does Mac have the similar utility? For example, is there a utility that I can use key 'C-x C-s' to send the key 'Command-S'?

share|improve this question
You do know that many emacs keybindings just work in OS X apps, right? C-a and C-e, for example, move to front and end of a text line in TextEdit, the Safari URL bar, etc. – user588 Feb 15 '11 at 19:40
@mankoff : Yes, I do. However, I just wanted to know if I can have 'C-x C-s' also. – prosseek Feb 15 '11 at 19:44
up vote 1 down vote accepted

Edit: It looks like there is a solution described here.

I don't know of a solution, but I'd bet if anything could do this, it would be Ukelele.

Ukelele can assign multiple-character strings and can create "dead keys", where a keystroke sets a new state that modifies the output of the following keystroke.

Possibly combined with an Automator app. The initial keystroke C-x initiates the app, it captures the secondary keystroke (C-s), uses a lookup table to convert C-s to CMD+s, and then passes that to the foreground app.

share|improve this answer

You could configure some of them in ~/Library/Keybindings/DefaultKeyBinding.dict. See and this sample file: Emacs Opt Bindings.dict.

Another option would be to use KeyRemap4MacBook. It supports over 1000 preconfigured keybindings, including an "Emacs Mode" section.

share|improve this answer

I don't know xkeymap, but it sounds like you want to do keyboard mapping. Mac OS is built on BSD, hence xmodmap should work...

share|improve this answer

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.