Skip to content

Commit 939a40b

Browse files
committed
Add some instructions on how to customize emacs for working on the SGML
sources.
1 parent 5581f22 commit 939a40b

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

src/tools/editors/emacs.samples

+17
Original file line numberDiff line numberDiff line change
@@ -76,3 +76,20 @@
7676
))))
7777

7878
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
79+
80+
;;; To work on the documentation, the following (or a variant, as above)
81+
;;; can be helpful.
82+
83+
(defun pgsql-sgml-mode ()
84+
"SGML mode adjusted for PostgreSQL project"
85+
(interactive)
86+
(sgml-mode)
87+
88+
(setq sgml-basic-offset 1)
89+
)
90+
91+
(setq auto-mode-alist
92+
(cons '("\\(postgres\\|pgsql\\).*\\.sgml\\'" . pgsql-c-mode)
93+
auto-mode-alist))
94+
95+
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

0 commit comments

Comments
 (0)