erc-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Erc-discuss] <space> to scroll to next page?


From: Giorgos Keramidas
Subject: Re: [Erc-discuss] <space> to scroll to next page?
Date: Thu, 24 Nov 2011 16:47:50 +0100

On Thu, Nov 24, 2011 at 2:24 PM, Robert Epprecht <address@hidden> wrote:
> Hello
> I'm using erc on a linux text console. From Gnus and other emacs
> programs my fingers are used to scroll to the next page while reading
> by pressing <space>.
>
> Unfortunately I have to press <PageDown> when reading through an
> high traffic erc buffer.
>
> I would like the space bar to go down to next page unless the point
> is in the writable area of an erc buffer, where it should insert a space
> char.
>
> How do I do that?

You can enable view-mode on top of erc-mode. Then all the usual
key bindings of view-mode work, and you can scroll forward with
SPC, backward with backspace, search with '/', and so on.

If you find yourself often in the need for view-mode bindings
and typing `M-x view-mode' feels too much, you can bind
a key sequence like 'C-c v' to toggle view-mode, e.g.:

  (defun erc-mode-my-setup ()
   "Set up a few things for my erc-mode buffers."
    (interactive)
    (local-set-key (kbd "C-c v") ’view-mode))

  (add-hook ’erc-mode-hook ’erc-mode-my-setup)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]