comparison lisp/files.el @ 61964:fc75d79da090

(require-final-newline): Make Custom tags consistent with mode-require-final-newline. (mode-require-final-newline): Doc fix.
author Luc Teirlinck <teirllm@auburn.edu>
date Sun, 01 May 2005 12:56:42 +0000
parents beaf4d3d5cbf
children 11d8a39e986e b151ec53c504 08185296b491
comparison
equal deleted inserted replaced
61963:a86743d99b10 61964:fc75d79da090
285 from `mode-require-final-newline'." 285 from `mode-require-final-newline'."
286 :type '(choice (const :tag "When visiting" visit) 286 :type '(choice (const :tag "When visiting" visit)
287 (const :tag "When saving" t) 287 (const :tag "When saving" t)
288 (const :tag "When visiting or saving" visit-save) 288 (const :tag "When visiting or saving" visit-save)
289 (const :tag "Don't add newlines" nil) 289 (const :tag "Don't add newlines" nil)
290 (other :tag "Ask" ask)) 290 (other :tag "Ask each time" ask))
291 :group 'editing-basics) 291 :group 'editing-basics)
292 292
293 (defcustom mode-require-final-newline t 293 (defcustom mode-require-final-newline t
294 "*Whether to add a newline at end of file, in certain major modes. 294 "*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. 295 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 296 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. 297 to end in newlines, and the question is how to arrange that.
298 298
299 A value of t means do this only when the file is about to be saved. 299 A value of t means do this only when the file is about to be saved.
300 A value of `visit' means do this right after the file is visited. 300 A value of `visit' means do this right after the file is visited.
301 A value of `visit-save' means do it at both of those times. 301 A value of `visit-save' means do it at both of those times.