diff options
author | Tor Lillqvist <tml@collabora.com> | 2016-11-08 14:51:20 +0200 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2016-11-08 14:59:30 +0200 |
commit | f75cd22118a58c8a8827723c890885a500562465 (patch) | |
tree | ed136b41e2f6b565ac42ed124aec054faad1665f /TEMPLATE.SOURCECODE.HEADER | |
parent | b58e3de0cd9111b824e31ee4da3df8db0b58f857 (diff) |
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
Diffstat (limited to 'TEMPLATE.SOURCECODE.HEADER')
-rw-r--r-- | TEMPLATE.SOURCECODE.HEADER | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/TEMPLATE.SOURCECODE.HEADER b/TEMPLATE.SOURCECODE.HEADER index f842da62054d..dd0f99a72f45 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. # |