whitespace-mode

23 views
Skip to first unread message

David Reno

unread,
May 14, 2021, 1:08:26 PM5/14/21
to Emacs Prelude
Wow, not a very active group! Still, I'll try!

I'm looking for the best way to modify prelude to have a different whitespace-line-column based on type of file. It seems to be set to 80 for everything.

However, with some file types (e.g. org files) I prefer to type paragraphs and allow word-wrapping to occur at the end of the line. In those cases, I get highlighting that the line is too long. I was thinking just to set whitespace-line-column to 10000 or something like that for those types of files.

The kicker is that I find that when I set this there's no effect on the buffer until I toggle whitespace-mode.

Any suggestions?
--David

Bozhidar Batsov

unread,
May 18, 2021, 4:15:45 AM5/18/21
to emacs-...@googlegroups.com
Hey there!

Yeah, not the most active group for sure. Seems email is out of fashion these days. :-) I haven't dug deep in whitespace mode, but based on your experience and what was reported here https://github.com/bbatsov/prelude/issues/1300
it seems to me that whitespace-mode reads the config variables only on startup. I guess one approach might be to enable whitespace-mode in the individual major modes instead of in prog-mode's hook. 

--
You received this message because you are subscribed to the Google Groups "Emacs Prelude" group.
To unsubscribe from this group and stop receiving emails from it, send an email to emacs-prelud...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/emacs-prelude/9be9851a-03c1-48b8-8fac-acfcfbe9ce2cn%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages