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
This commit is contained in:
parent
b58e3de0cd
commit
f75cd22118
1 changed files with 4 additions and 4 deletions
|
@ -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.
|
||||
#
|
||||
|
|
Loading…
Reference in a new issue