making pageup/pagedown work in emacs in OS X Terminal.
Out of the box, the pageup and pagedown keys don’t do what I want when I’m running emacs in the OS X Terminall app. They page up and down through the Terminal buffer, rather than the emacs buffer.
Bother you, too? Here’s how to fix it, with thanks to Mac OSX Hints:
$ tcsh
% set echo_style=both
% echo -n "\e[5~ | pbcopy
% exit
In Terminal Inspector (Terminal/Window Settings/Keyboard),
- highlight page down;
- press Edit button;
- select “send string to shell:” from Action list;
- tab into input field;
- paste (apple-v);
- press OK;
- highlight shift page down;
- press Edit button;
- select “scroll to next page in buffer” from Action list;
- press OK;
- highlight shift page up;
- press Edit button;
- select “scroll to previous page in buffer” from Action list;
- press OK;
- press “Use Settings as Defaults” button.
Categories: OSX

