Sams Teach Yourself Emacs in 24 Hours |  | ContentsIndex
Appendix A: Installing Functions and Packages from the CD |  | Previous HourNext Chapter
Sections in this Hour: |  |

## pager.el

The pager package is described in Hour 4, "Basic Editing." It is a convenient way to scroll the display. You find it in Mikael Sjoumldin's /opt/share/emacs-lisp/ users/mikael/pager.el.directory.

It contains two groups of functions:

- Alternatives to the page up/page down functions. These alternatives preserve the location of point: If a number of pages up have been issued, the same number of pages down are issued (that is, it returns to the same location as it started out from).

- Functions for scrolling the window, but keeping the point at the same location of the window.

To install it, place the package in your lisp directory, and insert the following lines into your .emacs file:

    (require 'pager)
    (global-set-key [(control v)]      'pager-page-down) (global-set-key
    [(next)]           'pager-page-down) (global-set-key [(meta v)]
       'pager-page-up) (global-set-key [(prior)]          'pager-page-up)
     (global-set-key [(meta up)]    'pager-row-up) (global-set-key
    [(meta kp-8)]  'pager-row-up) (global-set-key [(meta down)]  'pager-
    row-down) (global-set-key [(meta kp-2)]  'pager-row-down) </pre>

Sams Teach Yourself Emacs in 24 Hours |  | ContentsIndex
Appendix A: Installing Functions and Packages from the CD |  | Previous HourNext Chapter
Sections in this Hour: |  |

© Copyright Macmillan USA. All rights reserved.