8000 Add some instructions on how to customize emacs for working on the SGML · postgrespro/postgres_cluster@939a40b · GitHub
[go: up one dir, main page]

Skip to content
< 8000 script crossorigin="anonymous" type="application/javascript" src="https://github.githubassets.com/assets/vendors-node_modules_github_remote-form_dist_index_js-node_modules_delegated-events_dist_inde-94fd67-99b04cc350b5.js" defer="defer">

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)
0