[Libreoffice-commits] core.git: TEMPLATE.SOURCECODE.HEADER
Tor Lillqvist
tml at collabora.com
Tue Nov 8 13:01:12 UTC 2016
TEMPLATE.SOURCECODE.HEADER | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
New commits:
commit f75cd22118a58c8a8827723c890885a500562465
Author: Tor Lillqvist <tml at collabora.com>
Date: Tue Nov 8 14:51:20 2016 +0200
Add fill-column: 100 to the Emacs mode line
Vim users: No reason to panic. This does not mean that Emacs users
would suddenly start to split existing (or new) code lines always
before column 100. The default value for fill-column is 70, and that
hasn't forced code lines edited in Emacs to be shorter than that
earlier either.
The primary intent of using a fill-column of 100 (instead of the
default 70) is that when you edit some long (multi-line) comment
block, and you want to reformat ("fill", "reflow") that comment (using
the fill-paragraph command, bound to Meta-Q), lines will be filled up
to column 100, and not just 70, which in most cases would look quite
short.
Unless I am strongly advised not to, I will start adding this to the
mode lines in source files if I remember, as I happen to edit some
comment block in them.
Change-Id: Icfb93dbb22b2db7190fdc9c8ee9518d08e73c7a8
diff --git a/TEMPLATE.SOURCECODE.HEADER b/TEMPLATE.SOURCECODE.HEADER
index f842da6..dd0f99a 100644
--- a/TEMPLATE.SOURCECODE.HEADER
+++ b/TEMPLATE.SOURCECODE.HEADER
@@ -30,7 +30,7 @@ existing module, then:
For C/C++/Java/IDL etc.
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */
/*
* This file is part of the LibreOffice project.
*
@@ -43,7 +43,7 @@ For C/C++/Java/IDL etc.
For makefiles:
-# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
+# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t; fill-column: 100 -*-
#
# This file is part of the LibreOffice project.
#
@@ -89,7 +89,7 @@ For XML / .component:
For C/C++/Java/IDL etc.
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */
/*
* This file is part of the LibreOffice project.
*
@@ -112,7 +112,7 @@ For C/C++/Java/IDL etc.
For makefiles, perl, scripts etc.
-# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
+# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t; fill-column: 100 -*-
#
# This file is part of the LibreOffice project.
#
More information about the Libreoffice-commits
mailing list