| 1 |
;-*-emacs-lisp-*- |
| 2 |
;; arch-tag: 71313809-c3bd-4550-80da-e133ebb269ba |
| 3 |
|
| 4 |
;; Fixes for Debian |
| 5 |
(if (file-readable-p (concat "=F" "/psgml.elc")) |
| 6 |
(progn |
| 7 |
|
| 8 |
(if (fboundp 'debian-pkg-add-load-path-item) |
| 9 |
(setq load-path (debian-pkg-add-load-path-item "=F")) |
| 10 |
(setq load-path (cons "=F" load-path))) |
| 11 |
|
| 12 |
;; Make sure that the uncompiled files are also in the |
| 13 |
;; laod-path, though near the end. |
| 14 |
(setq load-path (nconc load-path (list "/usr/share/emacs/site-lisp/psgml"))) |
| 15 |
|
| 16 |
(setq sgml-ecat-files '("ECAT" "~/sgml/ECAT" "/usr/share/sgml/ECAT" |
| 17 |
"/usr/local/share/sgml/ECAT")) |
| 18 |
|
| 19 |
(or (assoc "\\.s?html?\\'" auto-mode-alist) |
| 20 |
(setq auto-mode-alist (cons '("\\.s?html?\\'" . html-mode) |
| 21 |
auto-mode-alist))) |
| 22 |
|
| 23 |
(setq auto-mode-alist (append '(("\\.xml\\'" . xml-mode)) auto-mode-alist)) |
| 24 |
|
| 25 |
(setq |
| 26 |
sgml-data-directory "/usr/share/sgml/declaration/" |
| 27 |
sgml-xml-declaration "/usr/share/sgml/declaration/xml.dcl" |
| 28 |
sgml-display-char-list-filename "/usr/share/sgml/charsets/iso88591.map" |
| 29 |
sgml-public-map '("%S" "/usr/share/sgml/%S" "/usr/share/sgml/%o/%c/%d" |
| 30 |
"/usr/local/share/sgml/%o/%c/%d") |
| 31 |
sgml-system-path '("/usr/share/sgml" "/usr/share/sgml/cdtd" |
| 32 |
"/usr/local/share/sgml") |
| 33 |
) |
| 34 |
(eval-after-load "psgml" |
| 35 |
'(progn |
| 36 |
(let ((program (if (file-exists-p "/usr/bin/onsgmls") |
| 37 |
"onsgmls" |
| 38 |
"nsgmls"))) |
| 39 |
(setq-default sgml-validate-command |
| 40 |
(concat program " -e -g -s -u %s %s")) |
| 41 |
(setq-default sgml-xml-validate-command |
| 42 |
(concat program " -wxml -e -g -s -u %s %s"))) |
| 43 |
)) |
| 44 |
|
| 45 |
|
| 46 |
|
| 47 |
;;;; Autoloads and hooks |
| 48 |
|
| 49 |
(autoload 'compilation-start "compile" "") |
| 50 |
(autoload 'html-mode "psgml-html" "HTML mode." t) |
| 51 |
(autoload 'reporter-submit-bug-report "reporter" nil) |
| 52 |
(autoload 'sgml-attrib-menu "psgml-edit" nil) |
| 53 |
(autoload 'sgml-backward-element "psgml-edit" nil) |
| 54 |
(autoload 'sgml-backward-up-element "psgml-edit" nil) |
| 55 |
(autoload 'sgml-beginning-of-element "psgml-edit" nil) |
| 56 |
(autoload 'sgml-change-element-name "psgml-edit" nil) |
| 57 |
(autoload 'sgml-charent-to-display-char "psgml-charent" nil) |
| 58 |
(autoload 'sgml-check-dtd-subset "psgml-dtd") |
| 59 |
(autoload 'sgml-complete "psgml-edit" nil) |
| 60 |
(autoload 'sgml-custom-dtd "psgml-edit" nil) |
| 61 |
(autoload 'sgml-custom-markup "psgml-edit" nil) |
| 62 |
(autoload 'sgml-describe-element-type "psgml-info" nil) |
| 63 |
(autoload 'sgml-describe-entity "psgml-info" nil) |
| 64 |
(autoload 'sgml-display-char-to-charent "psgml-charent" nil) |
| 65 |
(autoload 'sgml-do-set-option "psgml-edit" nil) |
| 66 |
(autoload 'sgml-do-usemap-element "psgml-dtd" nil) |
| 67 |
(autoload 'sgml-doctype-insert "psgml-edit" nil) |
| 68 |
(autoload 'sgml-down-element "psgml-edit" nil) |
| 69 |
(autoload 'sgml-edit-attrib-clear "psgml-edit" nil) |
| 70 |
(autoload 'sgml-edit-attrib-default "psgml-edit" nil) |
| 71 |
(autoload 'sgml-edit-attrib-field-end "psgml-edit" nil) |
| 72 |
(autoload 'sgml-edit-attrib-field-start "psgml-edit" nil) |
| 73 |
(autoload 'sgml-edit-attrib-finish "psgml-edit" nil) |
| 74 |
(autoload 'sgml-edit-attrib-next "psgml-edit" nil) |
| 75 |
(autoload 'sgml-edit-attributes "psgml-edit" nil) |
| 76 |
(autoload 'sgml-element-endable-p "psgml-edit" nil) |
| 77 |
(autoload 'sgml-element-menu "psgml-edit" nil) |
| 78 |
(autoload 'sgml-end-of-element "psgml-edit" nil) |
| 79 |
(autoload 'sgml-end-tag-menu "psgml-edit" nil) |
| 80 |
(autoload 'sgml-entities-menu "psgml-edit" nil) |
| 81 |
(autoload 'sgml-expand-all-shortrefs "psgml-edit" nil) |
| 82 |
(autoload 'sgml-expand-element "psgml-edit" nil) |
| 83 |
(autoload 'sgml-expand-entity-reference "psgml-edit" nil) |
| 84 |
(autoload 'sgml-file-options-menu "psgml-edit" nil) |
| 85 |
(autoload 'sgml-fill-element "psgml-edit" nil) |
| 86 |
(autoload 'sgml-fold-element "psgml-edit" nil) |
| 87 |
(autoload 'sgml-fold-region "psgml-edit" nil) |
| 88 |
(autoload 'sgml-fold-subelement "psgml-edit" nil) |
| 89 |
(autoload 'sgml-forward-element "psgml-edit" nil) |
| 90 |
(autoload 'sgml-general-dtd-info "psgml-info" nil) |
| 91 |
(autoload 'sgml-hide-attributes "psgml-edit" nil) |
| 92 |
(autoload 'sgml-hide-tags "psgml-edit" nil) |
| 93 |
(autoload 'sgml-indent-line "psgml-edit" nil) |
| 94 |
(autoload 'sgml-insert-attribute "psgml-edit" nil) |
| 95 |
(autoload 'sgml-insert-element "psgml-edit" nil) |
| 96 |
(autoload 'sgml-insert-end-tag "psgml-edit" nil) |
| 97 |
(autoload 'sgml-insert-tag "psgml-edit" nil) |
| 98 |
(autoload 'sgml-kill-element "psgml-edit" nil) |
| 99 |
(autoload 'sgml-kill-markup "psgml-edit" nil) |
| 100 |
(autoload 'sgml-list-attributes "psgml-info" nil) |
| 101 |
(autoload 'sgml-list-content-elements "psgml-info" nil) |
| 102 |
(autoload 'sgml-list-elements "psgml-info" nil) |
| 103 |
(autoload 'sgml-list-occur-in-elements "psgml-info" nil) |
| 104 |
(autoload 'sgml-list-terminals "psgml-info" nil) |
| 105 |
(autoload 'sgml-list-valid-tags "psgml-edit" nil) |
| 106 |
(autoload 'sgml-load-dtd "psgml-parse" nil) |
| 107 |
(autoload 'sgml-make-character-reference "psgml-edit" nil) |
| 108 |
(autoload 'sgml-mark-current-element "psgml-edit" nil) |
| 109 |
(autoload 'sgml-mark-element "psgml-edit" nil) |
| 110 |
(autoload 'sgml-mode "psgml" "Major mode to edit SGML files." t ) |
| 111 |
(autoload 'sgml-next-data-field "psgml-edit" nil) |
| 112 |
(autoload 'sgml-next-trouble-spot "psgml-edit" nil) |
| 113 |
(autoload 'sgml-normalize "psgml-edit" nil) |
| 114 |
(autoload 'sgml-normalize-element "psgml-edit" nil) |
| 115 |
(autoload 'sgml-parse-prolog "psgml-parse" nil) |
| 116 |
(autoload 'sgml-save-dtd "psgml-dtd" nil) |
| 117 |
(autoload 'sgml-show-attributes "psgml-edit" nil) |
| 118 |
(autoload 'sgml-show-context "psgml-edit" nil) |
| 119 |
(autoload 'sgml-show-or-clear-log "psgml-parse" nil) |
| 120 |
(autoload 'sgml-show-tags "psgml-edit" nil) |
| 121 |
(autoload 'sgml-split-element "psgml-edit" nil) |
| 122 |
(autoload 'sgml-start-tag-menu "psgml-edit" nil) |
| 123 |
(autoload 'sgml-tag-region "psgml-edit" nil) |
| 124 |
(autoload 'sgml-tag-region-menu "psgml-edit" nil) |
| 125 |
(autoload 'sgml-tags-menu "psgml-edit" nil) |
| 126 |
(autoload 'sgml-translate-model "psgml-dtd" "" nil) |
| 127 |
(autoload 'sgml-transpose-element "psgml-edit" nil) |
| 128 |
(autoload 'sgml-unfold-all "psgml-edit" nil) |
| 129 |
(autoload 'sgml-unfold-element "psgml-edit" nil) |
| 130 |
(autoload 'sgml-unfold-line "psgml-edit" nil) |
| 131 |
(autoload 'sgml-untag-element "psgml-edit" nil) |
| 132 |
(autoload 'sgml-up-element "psgml-edit" nil) |
| 133 |
(autoload 'sgml-user-options-menu "psgml-edit" nil) |
| 134 |
(autoload 'sgml-what-element "psgml-edit" nil) |
| 135 |
(autoload 'sgml-write-dtd "psgml-dtd") |
| 136 |
(autoload 'xml-mode "psgml" nil t) |
| 137 |
;;;(autoload 'sgml-xpointer "psgml-xpointer" nil t) |
| 138 |
|
| 139 |
|
| 140 |
(provide 'psgml-init) |
| 141 |
)) |