By default I have set truncate-lines to t
, (do not display continuation lines), hence I want to enable it for csv-mode by default.
Code section related to truncate-lines
in my config file.
(add-hook 'minibuffer-setup-hook
(lambda () (setq truncate-lines nil)))
(setq-default truncate-lines t)
(global-set-key (kbd "C-x C-t") 'toggle-truncate-lines)
I have tried to add following lines, which did not work:
(defun my-truncate-lines-disables ()
(setq truncate-lines nil))
(add-hook 'csv-mode-hook 'my-truncate-lines-disables)
Related: How to prevent line wrapping in code, but allow it in help/info buffers?