Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

In the terminal I'm able to hit option+b to move back a word. In any GUI app I get an integral: ∫ I know most of the emacs motions so moving around would be a lot easier if I could use the alt/meta/option movements. opiton+e doesn't work either.

Any ideas?

Thanks!

share|improve this question
    
    
if you found an appropriate answer, consider adding it as an answer rather than a comment. –  Lorenzo Von Matterhorn Apr 7 '13 at 17:43
    
You can also use KeyRemap4MacBook: apple.stackexchange.com/questions/68716/… –  Lauri Ranta Apr 9 '13 at 7:50
add comment

3 Answers

up vote 1 down vote accepted

Adding this file to ~/Library/KeyBindings/DefaultKeyBinding.dict does the trick:

https://github.com/walter/additional-mac-os-x-emacs-key-bindings/blob/master/DefaultKeyBinding.dict

share|improve this answer
add comment

In a C-shell, (tcsh, zsh, csh), a built-in command called bindkey will display all the bindings for various navigation and selection shortcuts. While the command does not exist in the other shells, at least several bindings work in /bin/bash and /bin/sh that I've tested.

If bindkeys gives you a "command not found" error, enter tcsh, and try again at the new prompt. You can redirect the output from bindkey to a file which you can reference later. Once you're finished with tcsh, type exit and you'll go back to your regular command line shell.

Many of the bindings listed also work in TextEdit.app, or on the URL bar of web browsers.

Note that ^ means Ctrl, and ^] means Esc. Not all of the key bindings are applicable in every application.

share|improve this answer
add comment

I don't know if it is what you want but you can still use the mac os shortcut using :

+ one word left

+ one word right

+ beginning of line

+ end of line

share|improve this answer
1  
I wanted emacs key bindings. –  Justin Thomas Apr 8 '13 at 20:58
    
⌘+← and ⌘+→ don't bring me to the beginning of the line, they cycle through Terminal windows. –  Ben Companjen Mar 2 at 20:50
add comment

Your Answer

 
discard

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.