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: Robert Epprecht
Subject: Re: [Erc-discuss] <space> to scroll to next page?
Date: Sun, 27 Nov 2011 06:10:36 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux)

"Edward O'Connor" <address@hidden> writes:

[scrolling text in erc with <space>]

> This is how I do it:
>
> (defun ted-erc-spc-dwim ()
>   "DWIMmy behavior for the SPC key in ERC."
>   (interactive)
>   (condition-case nil (insert " ")
>     (text-read-only
>      (condition-case nil (scroll-up)
>        (end-of-buffer (recenter 0))))))
>
> (define-key erc-mode-map (kbd "SPC") 'ted-erc-spc-dwim)

Ah, this is what i wanted to write.
Just didn't now how to say it in emacs lisp ;)

thanks a lot to you and Giorgos.
Robert




reply via email to

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