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

Currently in emacs/terminal, I have to press ESC every time I want to send an escaped keystroke, eg: to go forwards two words, I have to press:

ESC+f; ESC+f

How do I change the system so that I just have to press and hold ESC once?:

share|improve this question
up vote 5 down vote accepted

Unfortunately, there doesn't seem to be a way to get ESC-f to repeat and it has something to do with ESC. Here's one solution that will work:

Currently, is using ESC as META. You can change this to (option) like this.

  1. Visit Terminal -> Preferences ( -, ).
  2. Select the Keyboard Tab on the right
  3. Check the "Use option as meta key" box at the bottom of the Keyboard pane

Now enjoy repeating commands that involve meta by using the option key instead of ESC.

share|improve this answer

Select “Use option as meta key” in Terminal > Preferences > Settings > [profile] > Keyboard. Then you can press the Option modifier key and type f twice.

The “Meta” key sends an ESC before the character you type in combination with the modifier.

Also note that you can use the Keyboard preference to map other keys to commonly used sequences like ESC f.

In fact, as of OS X Lion 10.7, Terminal's default keyboard map makes the standard Mac keys for moving left/right a word at a time (Option-Left Arrow/Right Arrow) send ESC b and ESC f, respectively.

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.