Faster point movement

February 21, 2008

My day job doesn’t include a lot of Lisp hacking.

On the positive side, though, this means that I’m free to redefine "M-C-p" (backward-list) and "M-C-n" (forward-list), because I never use them.

So here is today’s init.el addition:

(global-set-key "\M-\C-p"
  '(lambda () (interactive) (previous-line 5)))
           (global-set-key "\M-\C-n"
           '(lambda () (interactive) (next-line 5)))

I use a rather small font, so my 1600×1200 monitors can hold a lot of lines. This snippet allows me to move 5 lines at a time instead of one.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: