How to set the default width of fill mode to 80 with emacs?

Emacs

Emacs Problem Overview


I know that "C-u 80 C-x f" sets the fill width 80, and M-q adjusts it. How to make it default? I mean, how to make width 80 deafault for fill width?

Emacs Solutions


Solution 1 - Emacs

In your .emacs place (setq-default fill-column 80) Or you can just use M-x customize-variable on fill-column, and it will set it and save it for you using the standard customize interface.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionprosseekView Question on Stackoverflow
Solution 1 - EmacsNikkiAView Answer on Stackoverflow