diff options
author | Peter Eisentraut <peter_e@gmx.net> | 2009-05-18 12:47:44 +0000 |
---|---|---|
committer | Peter Eisentraut <peter_e@gmx.net> | 2009-05-18 12:47:44 +0000 |
commit | 939a40b0afeddd665714382b536422a5c2c25fd7 (patch) | |
tree | 79df69d1dd838bb8e80c8d9f2cc90a88114a3973 /src | |
parent | 5581f226c8b1b4fdfab72ac374390c03a830b456 (diff) | |
download | postgresql-939a40b0afeddd665714382b536422a5c2c25fd7.tar.gz postgresql-939a40b0afeddd665714382b536422a5c2c25fd7.zip |
Add some instructions on how to customize emacs for working on the SGML
sources.
Diffstat (limited to 'src')
-rw-r--r-- | src/tools/editors/emacs.samples | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/tools/editors/emacs.samples b/src/tools/editors/emacs.samples index a4d00bedc4f..b15f8fee4e3 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)) + +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |