From: Peter Eisentraut Date: Mon, 18 May 2009 12:47:44 +0000 (+0000) Subject: Add some instructions on how to customize emacs for working on the SGML X-Git-Tag: REL8_4_RC1~98 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=939a40b0afeddd665714382b536422a5c2c25fd7;p=postgresql Add some instructions on how to customize emacs for working on the SGML sources. --- diff --git a/src/tools/editors/emacs.samples b/src/tools/editors/emacs.samples index a4d00bedc4..b15f8fee4e 100644 --- a/src/tools/editors/emacs.samples +++ b/src/tools/editors/emacs.samples @@ -76,3 +76,20 @@ )))) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; + +;;; To work on the documentation, the following (or a variant, as above) +;;; can be helpful. + +(defun pgsql-sgml-mode () + "SGML mode adjusted for PostgreSQL project" + (interactive) + (sgml-mode) + + (setq sgml-basic-offset 1) +) + +(setq auto-mode-alist + (cons '("\\(postgres\\|pgsql\\).*\\.sgml\\'" . pgsql-c-mode) + auto-mode-alist)) + +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;