What do I put in my init to enable a mode for all files?

Say I want to have auto-fill-mode enabled at all times.

I've seen this post and some others, but all are focused on a specific task. I'd like to document a general solution to a common search that uses best practices.


It depends on the mode.

In your case you can do:

(auto-fill-mode 1)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.