1
votes

In my ~/.emacs, I have

(global-visual-line-mode t)

However, this is making buffer-list hard to read if the emacs window is and narrow. How I can I set it up so I can have buffer-list (and potentially other buffers) to truncate mode?

2

2 Answers

0
votes

Most modes have a hook that runs when the mode is set, usually named on the form ...-mode-hook. You could add to a modes' hook to truncate lines (effectively turning off visual-line-mode):

(add-hook
 'some-mode-hook
 '(lambda ()
    (toggle-truncate-lines 1)
    )
 )
0
votes

It's worked form me, whit speedbar-mode:

(add-hook
 'speedbar-mode-hook
 '(lambda ()
    (visual-line-mode 0) ; disable only in the buffer sr-speedbar
    )
 )