;; here be some quick n dirty snippets of potentially relevant config code for getting erc to rewrap on the fly all squishy nice. ... i'm a noob who blindly copy-pasta'd, so, maybe i missed something, and maybe i included a few extra unecessary parts here. idk. i've not tested. just a hastey paste perchance it helps. ... probably better you look to https://www.emacswiki.org/emacs/ErcFilling ;; adjusts per size of screen... new lines only, can look messy with stuff already on screen. (add-hook 'window-configuration-change-hook '(lambda () (setq erc-fill-column (- (window-width) 2)))) ;; this should wrap chat the way you like. (add-hook 'erc-mode-hook 'visual-line-mode) ;; wrapping (global-visual-line-mode 1) ;; mark the line between read and unread ;; keeps possition rather than marking the line, unfortunately. ;;(erc-keep-place-mode 1) ;; lets sort this jumping to middle of the screen crap, once n for all. ;; https://www.gnu.org/software/emacs/manual/html_node/emacs/Auto-Scrolling.html#Auto-Scrolling (setq scroll-margin 1 scroll-conservatively 0 ;; scroll-up-aggressively 0.01 ;; ? involved in the erroneous behavior of scrolling to top ? scroll-down-aggressively 0.01) (setq-default scroll-down-aggressively 0.01) ;; (setq-default scroll-up-aggressively 0.01) ;; removed for testing (setq scroll-step 1) ;; claimed to risk display lock-up in some cases... leaving on until that happens. (setq scroll-conservatively 10000) (setq auto-window-vscroll nil)