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?
The easiest way to set fill-column is to use the command C-x f ( set-fill-column ). With a numeric argument, it uses that as the new fill column. With just C-u as argument, it sets fill-column to the current horizontal position of point.
The fill-column indicator is a useful functionality especially in prog-mode and its descendants (see Major Modes) to indicate the position of a specific column that has some special meaning for formatting the source code of a program.
The command M-q ( fill-paragraph ) fills the current paragraph. It redistributes the line breaks within the paragraph, and deletes any excess space and tab characters occurring within the paragraph, in such a way that the lines end up fitting within a certain maximum width.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With