I have a little problem with compiling my project in emacs. The compilation buffer does not line-wrap and I have some very long compile and link commands which I would like to sanity check sometimes.
Does anyone know how to force line-wrap on the output added to the compilation buffer, ideally as it is added (a la auto-fill).
VBR, Mark.
Try this:
(defun my-compilation-mode-hook ()
(setq truncate-lines nil) ;; automatically becomes buffer local
(set (make-local-variable 'truncate-partial-width-windows) nil))
(add-hook 'compilation-mode-hook 'my-compilation-mode-hook)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With