Skip to content

Instantly share code, notes, and snippets.

@jstuckey
Last active December 26, 2015 03:59
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 jstuckey/7089984 to your computer and use it in GitHub Desktop.
Save jstuckey/7089984 to your computer and use it in GitHub Desktop.
Make Home and End keys for Mac behave like they do on Windows: Home goes to the beginning of the line, and End goes to the end of the line. Place this file in ~/Library/KeyBindings/DefaultKeyBinding.dict
{
"\UF729" = "moveToBeginningOfLine:";
"$\UF729" = "moveToBeginningOfLineAndModifySelection:";
"\UF72B" = "moveToEndOfLine:";
"$\UF72B" = "moveToEndOfLineAndModifySelection:";
"^\UF729" = "moveToBeginningOfDocument:";
"^\UF72B" = "moveToEndOfDocument:";
"$^\UF729" = "moveToBeginningOfDocumentAndModifySelection:";
"$^\UF72B" = "moveToEndOfDocumentAndModifySelection:";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment