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.

I'd like to have word-forward/backward functionality with M-f and M-b plus all the other convenient shortcuts. Is this possible?

share|improve this question
    
I dont understand what you mean by OS X here. Please give an example what you want to accomplish. PS: I dont use mac –  kindahero Jan 5 '12 at 10:21

1 Answer 1

up vote 3 down vote accepted

Sure, put this in your ~/Library/KeyBindings/DefaultKeyBinding.dict (create it if it doesn't exists), and put the following:

{
"~f"        = "moveWordForward:";               /* M-f Move forward word */
"~b"        = "moveWordBackward:";              /* M-b Move backward word */
"~<"        = "moveToBeginningOfDocument:";     /* M-< Move to beginning of document */
"~>"        = "moveToEndOfDocument:";           /* M-> Move to end of document */
}

See here if you want the full reference of the OS X keyboard characters. And here if you want more emacs keybindings in OS X.

share|improve this answer

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.