I've been using emacs for a long time but still have little understanding of elisp; I basically copy code I find on websites into my .emacs
until it seems to do what I want.
I only recently discovered global-visual-line-mode
(I had been using auto-fill
), and now see based on this other answer and this one at stackoverflow that I also want adaptive-wrap-prefix-mode
. It works great when I turn it on manually, but when I blindly add the code provided in the former answer to my .emacs
, I get
File error: Cannot open load file, no such file or directory, adaptive-wrap
while blindly adding the code from the latter answer loads fine, but does not actually succeed in turning on adaptive-wrap-mode
. I've played with variations and I'm sure the solution is simple, but I just don't see it. How do I just get it to turn on both global-visual-line-mode
and adaptive-wrap-prefix-mode
by default?
I would be happy if I could get them both running just for my markdown files.
Thanks in advance!