Skip to content

Commit 415f5e1

Browse files
committed
Add fill-column setting to emacs example configurations
This matches the maximum line length that pgindent uses.
1 parent 9e9b9ac commit 415f5e1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/tools/editors/emacs.samples

+3
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
(setq-default tab-width 4)
2929
(c-set-style "bsd") ; set c-basic-offset to 4, plus other stuff
3030
(c-set-offset 'case-label '+) ; tweak case indent to match PG custom
31+
(setq fill-column 79) ; matches what pgindent does
3132
(setq indent-tabs-mode t)) ; make sure we keep tabs when indenting
3233

3334

@@ -38,6 +39,7 @@
3839

3940
(c-add-style "pgsql"
4041
'("bsd"
42+
(fill-column . 79)
4143
(indent-tabs-mode . t)
4244
(c-basic-offset . 4)
4345
(tab-width . 4)
@@ -71,6 +73,7 @@
7173
(setq c-basic-offset 4)
7274
(setq tab-width 4)
7375
(c-set-offset 'case-label '+)
76+
(setq fill-column 79)
7477
(setq indent-tabs-mode t)
7578
)
7679
))))

0 commit comments

Comments
 (0)