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?
Asked
Active
Viewed 338 times
0
-
Maybe a duplicate of http://stackoverflow.com/a/16048501/324105. You need to provide a link/details for this writeroom mode, because it's not part of Emacs. From your description it has some related options, but if you don't point us to it, we can't tell what you're actually using. – phils Nov 11 '14 at 23:14
-
Calling this a duplicate, because you've asked much the same question about writeroom in [another question](http://stackoverflow.com/questions/26843082/emacs-set-writeroom-mode-as-default) (which garnered similar comments to my own). – phils Nov 11 '14 at 23:20
-
Here is the link to the writeroom-mode that I am trying to use: [Writeroom](https://github.com/joostkremers/writeroom-mode) – user4189799 Nov 12 '14 at 07:51
1 Answers
2
Add a hook to find-file
:
(add-hook 'find-file-hook #'writeroom-mode)
Substitute #'writeroom-mode
with whatever function you want to run.

Sean Allred
- 3,558
- 3
- 32
- 71