This question already has an answer here:
- How to enable a non-global minor mode by default, on emacs startup? 1 answer
I use the minor mode writeroom which I have set to be global, but this setting only makes the mode global for all text-modes. I can specify more modes in the settings. But is there something I can write to enable this minor mode for all major modes?