commit: 9bd847060461f09be430a46a9cb46fc4582fd976 Author: Ulrich Müller <ulm <AT> gentoo <DOT> org> AuthorDate: Mon Dec 16 20:55:37 2019 +0000 Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org> CommitDate: Thu Dec 19 08:50:17 2019 +0000 URL: https://gitweb.gentoo.org/proj/devmanual.git/commit/?id=9bd84706
appendices/editor-configuration/emacs: Note about final newline in modes. Many program modes set require-final-newline to t by themselves. Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org> appendices/editor-configuration/emacs/text.xml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/appendices/editor-configuration/emacs/text.xml b/appendices/editor-configuration/emacs/text.xml index 29bb11e..93a1ea5 100644 --- a/appendices/editor-configuration/emacs/text.xml +++ b/appendices/editor-configuration/emacs/text.xml @@ -43,6 +43,8 @@ Files must end with a newline, in order to let tools like <c>diff</c> operate properly. To avoid accidental deletions, setting <c>(setq require-final-newline 'ask)</c> in your startup file will automatically check for the existence of it and ask you to add one. +Note that many modes for programming languages will add the newline +automatically before saving the file. </p> <p>