mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-08-25 22:57:19 +02:00
Now that the documentation sources are in XML rather than SGML, some of the documentation about the editor, or more specifically Emacs, setup needs updating. The updated instructions recommend using nxml-mode, which works mostly out of the box, with some small tweaks in emacs.samples and .dir-locals.el. Also remove some obsolete stuff in .dir-locals.el. I did, however, leave the sgml-mode settings in there so that someone using Emacs without emacs.samples gets those settings when editing a *.sgml file.
20 lines
729 B
EmacsLisp
20 lines
729 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)))
|
|
(nxml-mode . ((fill-column . 78)
|
|
(indent-tabs-mode . nil)))
|
|
(perl-mode . ((perl-indent-level . 4)
|
|
(perl-continued-statement-offset . 2)
|
|
(perl-continued-brace-offset . 4)
|
|
(perl-brace-offset . 0)
|
|
(perl-brace-imaginary-offset . 0)
|
|
(perl-label-offset . -2)
|
|
(indent-tabs-mode . t)
|
|
(tab-width . 4)))
|
|
(sgml-mode . ((fill-column . 78)
|
|
(indent-tabs-mode . nil))))
|