Line wrapping in compilation-mode buffers

Add the following hook to the compilation mode to wrap long lines in compilation buffers

(defun truncate-compilation-mode-hook ()
  (setq truncate-lines nil)
  (set (make-local-variable 'truncate-partial-width-windows) nil))
(add-hook 'compilation-mode-hook 'truncate-compilation-mode-hook)
Edit this page on GitHub

Links to this note