Skip to content
This repository has been archived by the owner on Jun 9, 2018. It is now read-only.

jgkamat/erc-scrolltoplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 

Repository files navigation

Erc ScrollToPlace http://melpa.milkbox.net/packages/erc-scrolltoplace-badge.svg

An erc module to try to emulate ‘scrolltobottom’ while keep-place is activated.

Overview

The keep-place erc module is very nice, because it let’s you find where you were when you last saw an erc buffer! It does this by moving point up one line if point is in the input bar.

However, after turning on keep-place it’s common to see something like the following:

https://i.imgur.com/McDsI2J.png

Scrolltoplace tries to change this so you will always see the following:

https://i.imgur.com/AAPnJ64.png

Even as new messages come in, you’ll be able to see them, and point will stay were it is.

This module does not touch point at all, so once your screen fills with messages, you won’t see new ones, since doing so would require moving point.

If this annoys you, you could add a function hook to move point to point-max whenever switching away from an erc buffer.

Installation

With Melpa:

M-x package-install erc-scrolltoplace

and add this to init:

(require 'erc-scrolltoplace)
(add-to-list 'erc-modules 'scrolltoplace)
(erc-update-modules)

And enjoy!

Contributing

Please submit issues or feature requests to this repo. Pull requests are welcome! This is a very small module, so it isn’t too hard.

Please let me know if you have any comments.

License

erc-scrolltoplace is licensed under the GPLv3.

About

An Erc module to replace scrolltobottom while using keep-place

Resources

License

Stars

Watchers

Forks

Packages

No packages published