Stop emacs erc from recentering -
emacs erc keep recentering. hard keep conversations in small buffer because of it.
i've tried followings none seems work...
(erc-scrolltobottom-mode) (require 'erc-goodies) (setq erc-input-line-position -1) (erc-add-scroll-to-bottom) (add-hook 'erc-mode-hook 'erc-add-scroll-to-bottom) (add-hook 'erc-insert-post-hook 'erc-scroll-to-bottom) is there way keep erc recentering?
the issue emacs (and not erc) tries recenter screen every time, cursor moves out of visible portion. see docstring of scroll-conservatively(c-hvscroll-conservativelyret)
scroll many lines, bring point on screen. if point moves off-screen, redisplay scroll `scroll-conservatively' lines in order bring point barely onto screen again. if cannot done, redisplay recenters point usual.
if value greater 100, redisplay never recenter point, scroll enough text bring point view, if move far away.
a value of 0 means recenter point if moves off screen.
so setting scroll-conservatively in erc-mode-hook might trick
(add-to-list 'erc-mode-hook (lambda () (set (make-local-variable 'scroll-conservatively) 100))) actually there lot of ways achieve want. have @ this section of emacs manual
Comments
Post a Comment