mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-11-21 03:13:05 +08:00
5e3e8e4daa
Update emacs.samples with new configuration snippets that match pgindent et al. formatting more accurately and follow Emacs Lisp best practices better. Add .dir-locals.el with a subset of that configuration for casual editing and viewing. Reviewed-by: Dimitri Fontaine <dimitri@2ndQuadrant.fr> Reviewed-by: Noah Misch <noah@leadboat.com>
19 lines
700 B
EmacsLisp
19 lines
700 B
EmacsLisp
;; see also src/tools/editors/emacs.samples for more complete settings
|
|
|
|
((c-mode . ((c-basic-offset . 4)
|
|
(c-file-style . "bsd")
|
|
(fill-column . 78)
|
|
(indent-tabs-mode . t)
|
|
(tab-width . 4)))
|
|
(dsssl-mode . ((indent-tabs-mode . nil)))
|
|
(nxml-mode . ((indent-tabs-mode . nil)))
|
|
(perl-mode . ((perl-indent-level . 4)
|
|
(perl-continued-statement-offset . 4)
|
|
(perl-continued-brace-offset . 4)
|
|
(perl-brace-offset . 0)
|
|
(perl-brace-imaginary-offset . 0)
|
|
(perl-label-offset . -2)
|
|
(tab-width . 4)))
|
|
(sgml-mode . ((fill-column . 78)
|
|
(indent-tabs-mode . nil))))
|