]> granicus.if.org Git - postgresql/commitdiff
Add some instructions on how to customize emacs for working on the SGML
authorPeter Eisentraut <peter_e@gmx.net>
Mon, 18 May 2009 12:47:44 +0000 (12:47 +0000)
committerPeter Eisentraut <peter_e@gmx.net>
Mon, 18 May 2009 12:47:44 +0000 (12:47 +0000)
sources.

src/tools/editors/emacs.samples

index a4d00bedc4fbdba25dbfbc2668d62525f47bf65c..b15f8fee4e3e68c1f8850a3f646ef853b927c05f 100644 (file)
               ))))
 
 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
+
+;;; 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))
+
+;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;