In doom emacs, by default (when starting from the default configuration), visual-line-mode
and word-wrap
enabled in fundamental, text, prog modes...
I would like to disable the visual-line-mode
by default and keep word-wrapping. This works when I do M-x visual-line-mode
, and I have the desired effect:
However I don't know how to do it properly to disable it by default. Few attempts:
adding in
config.el
:(global-visual-line-mode 0) (visual-line-mode 0)
doesn't make any effect
Adding the following hook disables word wrapping, and subsequent call to
(toggle-word-wrap)
doesn't work:(add-hook 'text-mode-hook (lambda () (visual-line-mode 0)))
so overall the effect is wrong (note: the lines are not unfolded): :