Mai Thomas wrote:

Can I make the cursor follow when I've done some scrolling via Page-Up/Page-Down?

You can change this globally for all standard apps (including TextMate) by creating a custom keybindings file at ~/Library/KeyBindings/DefaultKeyBinding.dict. By default OSX maps the PageUp and PageDown keys to the 'scrollPageUp:' and 'scrollPageDown:' actions. The behavior you want is simply 'pageUp:' and 'pageDown:'.

Here's my DefaultKeyBinding.dict, which fixes Home and End too. See http://www.lsmason.com/articles/macosxkeybindings.html and http://manual.macromates.com/en/key_bindings for all the gory details.

{
    /* home */
    "\UF729"   = "moveToBeginningOfLine:";
    "^\UF729"  = "moveToBeginningOfDocument:";
    "$\UF729"  = "moveToBeginningOfLineAndModifySelection:";
    "^$\UF729" = "moveToBeginningOfDocumentAndModifySelection:";

    /* end */
    "\UF72B"   = "moveToEndOfLine:";
    "^\UF72B"  = "moveToEndOfDocument:";
    "$\UF72B"  = "moveToEndOfLineAndModifySelection:";
    "^$\UF72B" = "moveToEndOfDocumentAndModifySelection:";

    /* page up/down */
    "\UF72C"  = "pageUp:";
    "\UF72D"  = "pageDown:";
}
  
--
Steve King
Sr. Software Engineer
Arbor Networks
+1 734 821 1461
www.arbornetworks.com