How can I set the default of truncate-lines
for dired buffers to truncate
?
I.e. when I open a new dired buffer it should show the directory truncated and not wrapped into the next line.
How can I set the default of truncate-lines
for dired buffers to truncate
?
I.e. when I open a new dired buffer it should show the directory truncated and not wrapped into the next line.
(defun my-dired-mode-hook ()
"Custom behaviours for `dired-mode'."
;; `truncate-lines' is automatically buffer-local.
(setq truncate-lines t))
(add-hook 'dired-mode-hook #'my-dired-mode-hook)