Skip to content

Commit

Permalink
Limit fill-column to 79
Browse files Browse the repository at this point in the history
The current line-length limit is set to 80, but that allows a
character to appear in the 80th column, and that causes emacs to
display a line-wrap followed by a blank line when the display/window
width is 80 columns.  Furthermore, this seems to contradict the
coding-style rules on the wiki which suggest that the line limit
should be 79.

So reduce the line width in both the emacs control file and the
contrib vimrc file to 79 characters.

ChangeLog:

	* .dir-locals.el (c-mode): Change fill-column to 79.

contrib/ChangeLog:

	* vimrc (textwidth): Change non-gitcommit length to 79.
  • Loading branch information
Richard Earnshaw committed Jul 20, 2021
1 parent b7e450c commit b51de13
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .dir-locals.el
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@
(nil . ((bug-reference-url-format . "http://gcc.gnu.org/PR%s")))
(c-mode . ((c-file-style . "GNU")
(indent-tabs-mode . t)
(fill-column . 80))))
(fill-column . 79))))
2 changes: 1 addition & 1 deletion contrib/vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ function! SetStyle()
if &filetype == "gitcommit"
setlocal textwidth=72
else
setlocal textwidth=80
setlocal textwidth=79
endif
setlocal formatoptions-=ro formatoptions+=cqlt
if index(l:c_exts, l:ext) != -1 || &filetype == "c" || &filetype == "cpp"
Expand Down

0 comments on commit b51de13

Please sign in to comment.