Closed andersjohansson closed 9 years ago
Yes, I've had the same thought myself and regret not doing it this way from the start. But my main reason for regretting it was the lack of consistency, which I thought wasn't a good enough reason to risk breaking people's config.
The situation you're describing is a practical matter, however, which may make it worth reconsidering. I'll think about it for a bit and let you know what I decide.
Well, I implemented the change, bumped up the major version number and added a note to the README
. Hope it won't trip up too many people...
Note that writeroom-mode
calls the global effect functions with 1
or -1
, so they don't need to accept any other arguments. But that's compatible with minor mode functions, so they should work too. Let me know when you run into trouble, though.
Great! It works well for me with latest from melpa.
In my writeroom I use the standard modeline but hide my panel (
fullboth
) and thus want to show time and battery status in the modeline. This is easily done withdisplay-time-mode
anddisplay-battery-mode
. I thought I would be able to just add these towriteroom-global-effects
but I had to write a short wrapper function and add that towriteroom-global-effects
for it to work:This was no problem of course, but what I propose is that the interpretation of the argument in
writeroom--activate-global-effects
should be the same as the interpretation of arguments for minor modes, i.e. "If called from Lisp, enable the mode if ARG is omitted or nil" (or non-negative really) and disable for negative arguments. This would enable anyone to just throw in any (global) minor mode intowriteroom-global-effects
, but changing it would of course possibly break current configurations.Thanks for a great package!