(setq erc-fill-column (- (window-width) 3)) (add-hook 'window-configuration-change-hook '(lambda () (setq erc-fill-column (- (window-width) 3))))