visual-line-mode
is very useful to wrap lines with the window size changing without inserting any newlines. But in org-mode
, it also wraps the headline and source blocks which is a little bit annoying.
So here comes my question: How can I turn off visual-line-mode for org-heading and source blocks permanently in org-mode?
(setq word-wrap t)
and truncate(setq truncate-lines t
) different portions of the same buffer, I'll definitely make this thread one of my favorites!(setq truncate-lines t)
and(setq word-wrap nil)
. When I edit any entry or if I just want to zoom-in/focus on one entry in particular, I have it set to narrow to subtree, at which time it wraps withvisual-line-mode
-- aka(setq word-wrap t)
and(setq truncate-lines nil)
. When I finish editing, it widens and goes back to truncated lines.