git.postgresql.org Git - postgresql.git/commitdiff

git projects / postgresql.git / commitdiff
? search:
summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 9e9b9ac)
Add fill-column setting to emacs example configurations
2011年4月22日 21:39:45 +0000 (00:39 +0300)
2011年4月22日 21:47:00 +0000 (00:47 +0300)
This matches the maximum line length that pgindent uses.


diff --git a/src/tools/editors/emacs.samples b/src/tools/editors/emacs.samples
index f755843d40518decc117100f82acf1b3efe65680..77a8f3959ff6fba9e2c3ea4da813d6e0b714d193 100644 (file)
--- 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)
)
))))
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /