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

link|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 at 10:21
feedback

1 Answer

up vote 1 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.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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