Debian Codegraph @

debian/Example

raw
1 ;;;;;;;;;;;;;;;;;;;;;;;;;;; -*- Mode: Emacs-Lisp -*- ;;;;;;;;;;;;;;;;;;;;;;;;;;
2 ;;;
3 ;;; This file has examples on how to customize psgml
4 ;;;
5 ;;; arch-tag: dfa1f019-e247-437b-871f-5371907f5053
6
7 (setq-default sgml-indent-data t)
8 (setq
9 sgml-always-quote-attributes t
10 sgml-auto-insert-required-elements t
11 sgml-auto-activate-dtd t
12 sgml-data-directory "/usr/share/sgml/declaration/"
13 sgml-indent-data t
14 sgml-indent-step 2
15 sgml-minimize-attributes nil
16 sgml-omittag nil
17 sgml-shortag nil
18 sgml-custom-markup
19 '(("Version1" "<![%Version1[\r]]>")
20 ("New page" "<?NewPage>"))
21 sgml-xml-declaration "/usr/share/sgml/declaration/xml.dcl"
22 sgml-display-char-list-filename "/usr/share/sgml/charsets/iso88591.map"
23 sgml-live-element-indicator t
24 sgml-public-map '("%S" "/usr/share/sgml/%S" "/usr/share/sgml/%o/%c/%d"
25 "/usr/local/share/sgml/%o/%c/%d")
26 sgml-system-path '("/usr/share/sgml" "/usr/share/sgml/cdtd"
27 "/usr/local/share/sgml")
28 sgml-tag-region-if-active t
29 )
30
31 (setq-default sgml-use-text-properties t)
32
33 ;; Set up the faces for markup
34 (setq-default sgml-markup-faces
35 '((start-tag . font-lock-keyword-face)
36 (end-tag . font-lock-keyword-face)
37 (ignored . font-lock-string-face)
38 (ms-start . font-lock-constant-face)
39 (ms-end . font-lock-constant-face)
40 (shortref . bold)
41 (entity . font-lock-type-face)
42 (comment . font-lock-comment-face)
43 (pi . font-lock-builtin-face)
44 (sgml . font-lock-function-name-face)
45 (doctype . font-lock-variable-name-face)))
46 ;; Turn on the markup based on whether font-lock would be on
47 (eval-after-load "psgml"
48 '(lambda ()
49 (if (boundp 'global-font-lock-mode)
50 (if global-font-lock-mode
51 (setq-default sgml-set-face t)
52 (setq-default sgml-set-face nil))
53 (setq-default sgml-set-face (eq 'x window-system)))
54
55 (when (default-value 'sgml-set-face)
56 (require 'font-lock))
57 ;; Lots of overlays in a buffer is bad news since they have to
58 ;; be relocated on changes, with typically quadratic
59 ;; behaviour.
60 ))
61 (add-hook 'html-mode-hook
62 (lambda () (setq font-lock-defaults nil)))
63
64 ;; Alternately, to use font-lock-mode, expand on:
65 ;; (add-hook 'html-mode-hook
66 ;; (lambda () (make-local-variable 'sgml-set-face)
67 ;; (setq sgml-set-face nil)))