Surf the Dream A discourse of links and articles from Justin Avery

Mac OSX fixing home & end keys

This article is courtesy of the extremely intelligent Adam Fisher. Thanks Fisher!

If anyone wants the home and end keys on the macs to work in a more standard way like windows (put the cursor to the end or beginning of the current line), this quick process will fix them nicely in many programs (including TextMate).

Look in /Library for a folder called KeyBindings – create it if it doesn’t exist. Inside this folder, create a file called DefaultKeyBindings.dict that contains the following:

    	/* Remap Home / End keys */
    	"\UF729"  = "moveToBeginningOfLine:";               	/* Home     	*/
    	"\UF72B"  = "moveToEndOfLine:";                     	/* End      	*/
    	"$\UF729" = "moveToBeginningOfLineAndModifySelection:"; /* Shift + Home */
    	"$\UF72B" = "moveToEndOfLineAndModifySelection:";   	/* Shift + End  */

Surf the Dream is a blog that has been running since the mid 2000's when it started on BlogSpot. Over the years it's been rebranded as (now my resume) and (which now redirects back to this site).

I offer consultation services through Simple Things, produce a range of high quality pocket notebooks(including a Solar System Notebook, Space Notebook, and a Guitar Notebook), write about the Universe and run a responsive web design knowledge hub and a RWD Weekly Newsletter.