Content-Length: 274317 | pFad | http://github.com/postgrespro/postgres/commit/939a40b0afeddd665714382b536422a5c2c25fd7

07 Add some instructions on how to customize emacs for working on the SGML · postgrespro/postgres@939a40b · GitHub
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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/939a40b0afeddd665714382b536422a5c2c25fd7

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy