I want to long commit messages to be truncated rather than wrapped around in magit buffers only because I can simply open a commit to see the full message.
I tried
(add-hook 'magit-mode-hook (lambda () (setq truncate-lines t)))
but that didn't have any effect; truncate-lines
is still nil
when I eval it in a magit buffer.
I'm using Spacemacs if that makes a difference.