summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Eisentraut2011-04-22 21:39:45 +0000
committerPeter Eisentraut2011-04-22 21:47:00 +0000
commit415f5e12592d135919549a5eb21893fda0417ebf (patch)
tree816b4bc6599b5729c9b3660f2c1ed635254244c7
parent9e9b9ac7d1860fbb98eb4db17a94ff25524b6447 (diff)
Add fill-column setting to emacs example configurations
This matches the maximum line length that pgindent uses.
-rw-r--r--src/tools/editors/emacs.samples3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/tools/editors/emacs.samples b/src/tools/editors/emacs.samples
index f755843d40..77a8f3959f 100644
--- a/src/tools/editors/emacs.samples
+++ b/src/tools/editors/emacs.samples
@@ -28,6 +28,7 @@
(setq-default tab-width 4)
(c-set-style "bsd") ; set c-basic-offset to 4, plus other stuff
(c-set-offset 'case-label '+) ; tweak case indent to match PG custom
+ (setq fill-column 79) ; matches what pgindent does
(setq indent-tabs-mode t)) ; make sure we keep tabs when indenting
@@ -38,6 +39,7 @@
(c-add-style "pgsql"
'("bsd"
+ (fill-column . 79)
(indent-tabs-mode . t)
(c-basic-offset . 4)
(tab-width . 4)
@@ -71,6 +73,7 @@
(setq c-basic-offset 4)
(setq tab-width 4)
(c-set-offset 'case-label '+)
+ (setq fill-column 79)
(setq indent-tabs-mode t)
)
))))