4

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

  • 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
3

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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