Commit 415f5e12 authored by Peter Eisentraut's avatar Peter Eisentraut

Add fill-column setting to emacs example configurations

This matches the maximum line length that pgindent uses.
parent 9e9b9ac7
...@@ -28,6 +28,7 @@ ...@@ -28,6 +28,7 @@
(setq-default tab-width 4) (setq-default tab-width 4)
(c-set-style "bsd") ; set c-basic-offset to 4, plus other stuff (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 (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 (setq indent-tabs-mode t)) ; make sure we keep tabs when indenting
...@@ -38,6 +39,7 @@ ...@@ -38,6 +39,7 @@
(c-add-style "pgsql" (c-add-style "pgsql"
'("bsd" '("bsd"
(fill-column . 79)
(indent-tabs-mode . t) (indent-tabs-mode . t)
(c-basic-offset . 4) (c-basic-offset . 4)
(tab-width . 4) (tab-width . 4)
...@@ -71,6 +73,7 @@ ...@@ -71,6 +73,7 @@
(setq c-basic-offset 4) (setq c-basic-offset 4)
(setq tab-width 4) (setq tab-width 4)
(c-set-offset 'case-label '+) (c-set-offset 'case-label '+)
(setq fill-column 79)
(setq indent-tabs-mode t) (setq indent-tabs-mode t)
) )
)))) ))))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment