Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@francisluong
Last active September 6, 2015 20:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save francisluong/71bd2a4d3014716de8bf to your computer and use it in GitHub Desktop.
Save francisluong/71bd2a4d3014716de8bf to your computer and use it in GitHub Desktop.
~/Library/KeyBindings/DefaultKeyBinding.dict - remap home and end keys in OSX
{
// via http://apple.stackexchange.com/questions/16135/remap-home-and-end-to-beginning-and-end-of-line
"\UF729" = moveToBeginningOfParagraph:; // home
"\UF72B" = moveToEndOfParagraph:; // end
"$\UF729" = moveToBeginningOfParagraphAndModifySelection:; // shift-home
"$\UF72B" = moveToEndOfParagraphAndModifySelection:; // shift-end
// Add to ~/Library/KeyBindings/DefaultKeyBinding.dict and restart your program.
}
@francisluong
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment