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

Lines changed: 17 additions & 0 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy