summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Eisentraut2009-05-18 12:47:44 +0000
committerPeter Eisentraut2009-05-18 12:47:44 +0000
commit8ebe0f1a7f0d5c3ff75426ca34108cdafc0b2314 (patch)
tree100791eeb0c7c72113b163e6935bee488f584336
parent15c0af6757c9b7aff6dfb00d96e385d13773b856 (diff)
Add some instructions on how to customize emacs for working on the SGML
sources.
-rw-r--r--src/tools/editors/emacs.samples17
1 files changed, 17 insertions, 0 deletions
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))
+
+;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;