287 |
(const :tag "When saving" t) |
(const :tag "When saving" t) |
288 |
(const :tag "When visiting or saving" visit-save) |
(const :tag "When visiting or saving" visit-save) |
289 |
(const :tag "Don't add newlines" nil) |
(const :tag "Don't add newlines" nil) |
290 |
(other :tag "Ask" ask)) |
(other :tag "Ask each time" ask)) |
291 |
:group 'editing-basics) |
:group 'editing-basics) |
292 |
|
|
293 |
(defcustom mode-require-final-newline t |
(defcustom mode-require-final-newline t |
294 |
"*Whether to add a newline at end of file, in certain major modes. |
"*Whether to add a newline at end of file, in certain major modes. |
295 |
Those modes set `require-final-newline' to this value when you enable them. |
Those modes set `require-final-newline' to this value when you enable them. |
296 |
They do so because they are used for files that are supposed |
They do so because they are often used for files that are supposed |
297 |
to end in newlines, and the question is how to arrange that. |
to end in newlines, and the question is how to arrange that. |
298 |
|
|
299 |
A value of t means do this only when the file is about to be saved. |
A value of t means do this only when the file is about to be saved. |