mirror of
https://github.com/postgres/postgres.git
synced 2025-07-28 23:42:10 +03:00
Add some instructions on how to customize emacs for working on the SGML
sources.
This commit is contained in:
@ -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))
|
||||||
|
|
||||||
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
|
Reference in New Issue
Block a user