0
|
1 ;;; hm--html-configuration.el - Configurationfile for the html-mode
|
2
|
2 ;;;
|
102
|
3 ;;; $Id: hm--html-configuration.el,v 1.4 1997/02/27 06:08:08 steve Exp $
|
2
|
4 ;;;
|
98
|
5 ;;; Copyright (C) 1993 - 1997 Heiko Muenkel
|
0
|
6 ;;; email: muenkel@tnt.uni-hannover.de
|
|
7 ;;;
|
|
8 ;;; This program is free software; you can redistribute it and/or modify
|
|
9 ;;; it under the terms of the GNU General Public License as published by
|
|
10 ;;; the Free Software Foundation; either version 2, or (at your option)
|
|
11 ;;; any later version.
|
|
12 ;;;
|
|
13 ;;; This program is distributed in the hope that it will be useful,
|
|
14 ;;; but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
15 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
16 ;;; GNU General Public License for more details.
|
|
17 ;;;
|
|
18 ;;; You should have received a copy of the GNU General Public License
|
|
19 ;;; along with this program; if not, write to the Free Software
|
|
20 ;;; Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
21 ;;;
|
|
22 ;;;
|
|
23 ;;; Description:
|
|
24 ;;;
|
2
|
25 ;;; This file is for the system wide configuration of the html mode.
|
|
26 ;;; User specific configuration should be done in the file
|
70
|
27 ;;; ~/.hm--html-configuration.el, which preceeds the settings in
|
2
|
28 ;;; this file.
|
|
29 ;;; All settings in this file are done with defvar's, therefore
|
|
30 ;;; you could overwrite them also with the function setq in your
|
|
31 ;;; .emacs or default.el and so on.
|
0
|
32 ;;;
|
|
33 ;;; Installation:
|
|
34 ;;;
|
|
35 ;;; Put this file in one of your lisp load path directories or
|
|
36 ;;; set the environment variable HTML_CONFIG_FILE to this file.
|
|
37 ;;; For example:
|
|
38 ;;; setenv HTML_CONFIG_FILE "~/data/hm--htm-environment.el"
|
|
39 ;;; if you have put this file in the directory "~/data/"
|
|
40 ;;;
|
|
41
|
2
|
42 ;(require 'adapt)
|
0
|
43
|
|
44
|
2
|
45 ;;; The User config file (an proposal of Manoj Srivastava)
|
0
|
46 (defvar hm--html-user-config-file nil
|
|
47 "*The location of the users config file.
|
|
48 This variable will only be used, if no environment variable
|
|
49 \"HTML_USER_CONFIG_FILE\" is set.
|
|
50 Example value: \"~/.hm--html-configuration.el\".")
|
|
51
|
98
|
52 ;;; The site specific config file
|
|
53 (defvar hm--html-site-config-file nil
|
|
54 "*The location of a site specific config file.
|
|
55 This variable will only be used, if no environment variable
|
|
56 \"HTML_SITE_CONFIG_FILE\" is set.")
|
0
|
57
|
2
|
58 ;;; Chose the initial popup menu
|
0
|
59 (defvar hm--html-expert nil
|
|
60 "*t : Use the HTML expert popup menu,
|
|
61 nil : Use the HTML novice (simple) menu.
|
|
62
|
2
|
63 NOTE: In the Emacs 19 you should set this variable only before
|
|
64 loading the mode.")
|
0
|
65
|
|
66 ;;; Your Signature
|
|
67
|
|
68 (defvar hm--html-signature-file nil
|
|
69 "*Your Signature file.
|
|
70 For example: \"http://www.tnt.uni-hannover.de:80/data/info/www/tnt/info/tnt/whois/muenkel.html\".")
|
|
71
|
|
72
|
|
73 (defvar hm--html-username nil
|
|
74 "*Your Name for the signature. For example: \"Heiko Münkel\".")
|
|
75
|
|
76
|
100
|
77 ;;; HTML Doctype
|
|
78 (defvar hm--html-html-doctype-version "-//W3C//DTD HTML 3.2 Final//EN"
|
|
79 "The HTML version. This is used in the doctype element.")
|
|
80
|
|
81
|
0
|
82 ;;; Your favorite server (eg: the name of the host of your own http server)
|
|
83 ;;; This is used in some other variables
|
|
84
|
|
85 (defvar hm--html-favorite-http-server-host-name "www.tnt.uni-hannover.de"
|
|
86 "*The name of your favorite http server host. It must be specified !")
|
|
87
|
|
88
|
|
89 ;;; For links to Info Gateways
|
|
90
|
2
|
91 (defvar hm--html-info-hostname:port-alist '(("www.tnt.uni-hannover.de:8005"))
|
0
|
92 "*Alist with hostnames and ports for the Info gateway.")
|
|
93
|
2
|
94 (defvar hm--html-info-hostname:port-default "www.tnt.uni-hannover.de:8005"
|
0
|
95 "*Default hostname with port for the Info gateway.")
|
|
96
|
2
|
97 (defvar hm--html-info-path-alist '((1 . "/appl/lemacs/Global/emacs/info")
|
|
98 (2 . "/appl/emacs/info")
|
|
99 (3 . "/appl/gnu/Global/info")
|
|
100 (4 . "/appl/emacs-19/Global/info")
|
|
101 (5 . "/"))
|
0
|
102 "*Alist with directories for the Info gateway.")
|
|
103
|
|
104
|
|
105 ;;; For links to WAIS Gateways
|
|
106
|
2
|
107 (defvar hm--html-wais-hostname:port-alist '(("www.tnt.uni-hannover.de:8001")
|
|
108 ("info.cern.ch:8001"))
|
0
|
109 "*Alist with hostnames and ports for the WAIS gateway.")
|
|
110
|
2
|
111 (defvar hm--html-wais-hostname:port-default "www.tnt.uni-hannover.de:8001"
|
0
|
112 "*Default hostname with port for the WAIS gateway.")
|
|
113
|
2
|
114 (defvar hm--html-wais-servername:port-alist
|
|
115 '(("wais.tnt.uni-hannover.de:210")
|
|
116 ("daedalus.tnt.uni-hannover.de:21408")
|
|
117 ("ikarus.tnt.uni-hannover.de:21401"))
|
0
|
118 "*Alist with servernames and ports for the WAIS gateway.")
|
|
119
|
2
|
120 (defvar hm--html-wais-servername:port-default "www.tnt.uni-hannover.de:210"
|
0
|
121 "*Default servername with port for the WAIS gateway.")
|
|
122
|
|
123 (defvar hm--html-wais-path-alist nil
|
|
124 "*Alist with directories for the wais gateway.")
|
|
125
|
|
126
|
|
127 ;;; For links to HTML servers
|
|
128
|
2
|
129 (defvar hm--html-html-hostname:port-alist '(("www.tnt.uni-hannover.de:80")
|
|
130 ("vxcrna.cern.ch:80")
|
|
131 ("www.ncsa.uiuc.edu:80"))
|
0
|
132 "*Alist with hostnames and ports for the HTML server.")
|
|
133
|
2
|
134 (defvar hm--html-html-hostname:port-default "www.tnt.uni-hannover.de:80"
|
0
|
135 "*Default hostname with port for the HTML server.")
|
|
136
|
2
|
137 (defvar hm--html-html-path-alist '((1 . "/data/info/www/tnt/")
|
|
138 (2 . "/data/info/www/")
|
|
139 (3 . "/data/info/")
|
|
140 (4 . "/data/")
|
|
141 (5 . "/appl/")
|
|
142 (6 . "/project/")
|
|
143 (7 . "~/")
|
|
144 (8 . "/"))
|
0
|
145 "*Alist with directories for the HTML server.")
|
|
146
|
|
147
|
|
148 ;;; For links to file gateways
|
|
149
|
2
|
150 (defvar hm--html-file-path-alist '((1 . "/data/info/www/tnt/")
|
|
151 (2 . "/data/info/www/")
|
|
152 (3 . "/data/info/")
|
|
153 (4 . "/data/")
|
|
154 (5 . "/appl/")
|
|
155 (6 . "/project/")
|
|
156 (7 . "~/")
|
|
157 (8 . "/"))
|
0
|
158 "*Alist with directories for the file gateway.")
|
|
159
|
|
160
|
|
161 ;;; For links to ftp servers
|
|
162
|
2
|
163 (defvar hm--html-ftp-hostname:port-alist '(("ftp.tnt.uni-hannover.de")
|
|
164 ("ftp.rrzn.uni-hannover.de")
|
|
165 ("wega.informatik.uni-hannover.de")
|
|
166 ("rusmv1.rus.uni-stuttgart.de")
|
|
167 ("export.lcs.mit.edu")
|
|
168 )
|
0
|
169 "*Alist with hostnames and ports for the ftp server.")
|
|
170
|
2
|
171 (defvar hm--html-ftp-hostname:port-default "ftp.rrzn.uni-hannover.de"
|
0
|
172 "*Default hostname with port for the ftp server.")
|
|
173
|
2
|
174 (defvar hm--html-ftp-path-alist '((1 . "/pub")
|
|
175 (2 . "/pub/gnu")
|
|
176 (3 . "/pub/linux")
|
|
177 (4 . "/pub/unix")
|
|
178 (5 . "/incoming")
|
|
179 (6 . "/"))
|
0
|
180 "*Alist with directories for the ftp server.")
|
|
181
|
|
182
|
|
183 ;;; For links to gopher servers
|
|
184
|
2
|
185 (defvar hm--html-gopher-hostname:port-alist
|
|
186 '(("newsserver.rrzn.uni-hannover.de:70")
|
|
187 ("solaris.rz.tu-clausthal.de:70")
|
|
188 ("veronica.scs.unr.edu:70")
|
|
189 ("pinus.slu.se:70")
|
|
190 ("sunic.sunet.se:70")
|
|
191 )
|
0
|
192 "*Alist with hostnames and ports for the gopher server.")
|
|
193
|
2
|
194 (defvar hm--html-gopher-doctype-alist '(("/1")
|
|
195 ("/11")
|
|
196 ("/00"))
|
0
|
197 "*Alist with doctype strings for the gopher server.")
|
|
198
|
2
|
199 (defvar hm--html-gopher-doctype-default "/1"
|
0
|
200 "*Default doctype string for the gopher server.")
|
|
201
|
70
|
202 (defvar hm--html-gopher-hostname:port-default
|
|
203 "newsserver.rrzn.uni-hannover.de:70"
|
|
204 "*Default hostname with port for the gopher server.")
|
|
205
|
2
|
206 (defvar hm--html-gopher-anchor-alist
|
|
207 '(("veronica")
|
|
208 ("Wide%20Area%20Information%20Services%20databases")
|
|
209 ("Subject%20Tree"))
|
0
|
210 "*Alist with directories for the gopher server.")
|
|
211
|
|
212
|
|
213 ;;; For the links to the Program Gateway
|
|
214
|
2
|
215 (defvar hm--html-proggate-hostname:port-alist
|
|
216 '(("www.tnt.uni-hannover.de:8007")
|
|
217 )
|
0
|
218 "*Alist with hostnames and ports for the proggate server.")
|
|
219
|
2
|
220 (defvar hm--html-proggate-hostname:port-default "www.tnt.uni-hannover.de:8007"
|
0
|
221 "*Default hostname with port for the proggate server.")
|
|
222
|
2
|
223 (defvar hm--html-proggate-allowed-file "/appl/www/bin/proggate.allowed"
|
0
|
224 "*The filename (with path) of the proggate allowed file.")
|
|
225
|
|
226
|
|
227 ;;; For links to the Local Program Gatewy
|
|
228
|
2
|
229 (defvar hm--html-local-proggate-path-alist '((1 . "/bin/")
|
|
230 (2 . "/usr/bin/")
|
|
231 (3 . "/usr/local/bin/")
|
|
232 (4 . "/appl/util/bin/")
|
|
233 (5 . "/appl/gnu/Global/bin/")
|
|
234 (6 . "/")
|
|
235 (7 . "/appl/")
|
|
236 (8 . "~/appl/Global/bin/")
|
|
237 (9 . "~/"))
|
0
|
238 "*Alist with directories for the local program gateway.")
|
|
239
|
|
240
|
|
241 ;;; For links to the mail gateway
|
|
242
|
2
|
243 (defvar hm--html-mail-hostname:port-alist '(("www.tnt.uni-hannover.de:8003")
|
|
244 )
|
0
|
245 "*Alist with hostnames and ports for the mail gateway.")
|
|
246
|
2
|
247 (defvar hm--html-mail-hostname:port-default "www.tnt.uni-hannover.de:8003"
|
0
|
248 "*Default hostname with port for the mail gateway.")
|
|
249
|
2
|
250 (defvar hm--html-mail-path-alist '((1 . "~/data/docs/mail")
|
|
251 (2 . "~/data/docs/news")
|
|
252 (3 . "~/docs/mail")
|
|
253 (4 . "~/docs/news")
|
|
254 (5 . "~/mail")
|
|
255 (6 . "~/news")
|
|
256 (7 . "~/")
|
|
257 (8 . "/data/info/mail")
|
|
258 (9 . "/data/info/news")
|
|
259 (10 . "/"))
|
0
|
260 "*Alist with directories for the mail gateway.")
|
|
261
|
|
262
|
|
263 ;;; For mailto links
|
|
264
|
2
|
265 (defvar hm--html-mailto-alist '(("muenkel@tnt.uni-hannover.de"))
|
0
|
266 "*Alist with mail adresses for the mailto alist.
|
|
267 The value of `user-mail-address' will also be added by the package to
|
|
268 this alist.")
|
|
269
|
|
270
|
|
271 ;;; For the server side include directive
|
2
|
272 ;;; not sure, if these directives works on any server
|
0
|
273
|
2
|
274 (defvar hm--html-server-side-include-command-alist '(("/bin/date")
|
|
275 ("/usr/bin/finger")
|
|
276 ("/bin/df"))
|
0
|
277 "*Alist with commands for the server side include directive.
|
|
278 These commands needs no parameter.")
|
|
279
|
2
|
280 (defvar hm--html-server-side-include-command-with-parameter-alist
|
|
281 '(("/usr/bin/man")
|
|
282 ("/usr/bin/finger")
|
|
283 ("/usr/bin/ls")
|
|
284 ("/bin/cat"))
|
0
|
285 "*Alist with commands for the server side include directive.
|
|
286 These commands needs parameters.")
|
|
287
|
|
288
|
|
289 ;;; Alist with URL'S for FORMS and IMAGE tags
|
|
290
|
2
|
291 (defvar hm--html-url-alist
|
|
292 (list
|
|
293 '("http://hoohoo.ncsa.uiuc.edu/htbin-post/post-query"
|
|
294 POST)
|
|
295 '("http://hoohoo.ncsa.uiuc.edu/htbin/query"
|
|
296 GET)
|
|
297 (list
|
|
298 (concat "http://"
|
|
299 hm--html-favorite-http-server-host-name
|
|
300 "/")
|
|
301 'IMAGE))
|
0
|
302 "*Alist with URL's for FORMS and IMAGE tags.
|
|
303 The cdr of each list contains symbols, which specifys the use of the
|
|
304 URL.")
|
|
305
|
|
306
|
|
307 ;;; For the marking of examples in the help buffer
|
|
308
|
|
309 (defvar hm--html-help-foreground "red"
|
|
310 "The foreground color to highlight examples.")
|
|
311
|
|
312 (defvar hm--html-help-background nil
|
|
313 "The background color to highlight examples.")
|
|
314
|
|
315 (defvar hm--html-help-font (face-font 'bold)
|
|
316 "The font to highlight examples.")
|
|
317
|
|
318
|
|
319 ;;; For the Templates
|
|
320
|
2
|
321 (defvar hm--html-template-dir "/data/info/www/tnt/guide/templates"
|
98
|
322 "*A directory with templatefiles.
|
|
323 It is now also possible to use it as a list of directories.
|
|
324 Look at the variable `tmpl-template-dir-list' for further descriptions.")
|
0
|
325
|
98
|
326 (if (listp hm--html-template-dir)
|
|
327 (unless (file-exists-p (car hm--html-template-dir))
|
|
328 ;; Use a system directory, if the above one doesn't exist
|
|
329 ;; This may only be useful, in the XEmacs >= 19.12
|
|
330 (setq hm--html-template-dir (cons (concat data-directory
|
|
331 "../lisp/hm--html-menus/")
|
|
332 hm--html-template-dir)))
|
|
333 (unless (file-exists-p hm--html-template-dir)
|
0
|
334 ;; Use a system directory, if the above one doesn't exist
|
98
|
335 ;; This may only be useful, in the XEmacs >= 19.12
|
0
|
336 (setq hm--html-template-dir (concat data-directory
|
98
|
337 "../lisp/hm--html-menus/"))))
|
0
|
338
|
98
|
339 (defvar hm--html-frame-template-file (concat data-directory
|
|
340 "../lisp/hm--html-menus/"
|
70
|
341 "frame.tmpl")
|
0
|
342 "File, which is used as template for a html frame.")
|
|
343
|
2
|
344 (defvar hm--html-automatic-expand-templates t
|
0
|
345 "*Automatic expansion of templates. This feature needs the file
|
|
346 tmpl-minor-mode.el from Heiko Muenkel (muenkel@tnt.uni-hannover.de),
|
|
347 which is distributed with the package hm--html-menus.")
|
|
348
|
98
|
349 (defvar hm--html-template-filter-regexp ".*\\.html\\.tmpl$"
|
|
350 "*Regexp for filtering out non template files in a directory.")
|
0
|
351
|
|
352 ;;; for deleting the automounter path-prefix
|
2
|
353 (defvar hm--html-delete-wrong-path-prefix '("/tmp_mnt" "/phys/[^/]+")
|
0
|
354 "If non nil, it specifies path-prefixes, which should be deleted in pathes.
|
|
355 The Sun automounter adds a temporary prefix to the automounted directories
|
|
356 (At our site the prefix is /tmp_mnt). But you can't select such a path, if
|
|
357 the automounter has currently not mounted the directory and so you can't
|
|
358 follow a html-link, which consists of such a path. To overcome this behaviour,
|
|
359 you can set this variable to the prefix (eg. \"/tmp_mnt\"). After that, the
|
|
360 prefix should be stripped from the pathes during the creation of the links.
|
|
361 ATTENTION: This variable is used as regular expression !
|
|
362 It can be set to a string or to a list of strings.")
|
|
363
|
|
364
|
|
365 ;;; For insertation of created and changed comments and automatic
|
|
366 ;;; date update in the title line
|
|
367
|
|
368 (defvar hm--html-automatic-new-date t
|
|
369 "*t => The date in the title line will be updated before filesaving.
|
|
370 nil => No automatic update of the date.")
|
|
371
|
|
372 (defvar hm--html-automatic-changed-comment t
|
|
373 "*t => A \"changed comment\" line will be added before filesaving.
|
|
374 nil => No automatic insertation of a \"changed comment\" line.")
|
|
375
|
|
376 (defvar hm--html-automatic-created-comment t
|
|
377 "*t => A \"created comment\" line will be added.
|
|
378 nil => No automatic insertation of a \"created comment\" line.")
|
|
379
|
|
380
|
|
381 ;;; Keybindings:
|
|
382
|
|
383 (defvar hm--html-bind-latin-1-char-entities t
|
70
|
384 "Set this to nil, if you don't want to use the ISO Latin 1 charcter entities.
|
0
|
385 This is only useful, if `hm--html-use-old-keymap' is set to nil. It is only
|
|
386 used during loading the html package the first time.")
|
|
387
|
|
388
|
2
|
389 ;;; The drag and drop interface
|
|
390 (defvar hm--html-idd-create-relative-links t
|
|
391 "If t, then the hm--html-idd-* functions are creating relative links.
|
|
392 Otherwise absolute links are used. The idd functions are used for
|
|
393 drag and drop.")
|
0
|
394
|
2
|
395 (defvar hm--html-idd-actions
|
98
|
396 '((nil (((idd-if-major-mode-p . dired-mode)
|
|
397 (idd-if-dired-file-on-line-p . ".*\\.\\(gif\\)\\|\\(jpg\\)"))
|
2
|
398 hm--html-idd-add-include-image-from-dired-line)
|
98
|
399 (((idd-if-major-mode-p . dired-mode)
|
|
400 (idd-if-dired-no-file-on-line-p . nil))
|
2
|
401 hm--html-idd-add-file-link-to-file-on-dired-line)
|
98
|
402 (((idd-if-major-mode-p . dired-mode)
|
|
403 (idd-if-dired-no-file-on-line-p . t))
|
2
|
404 hm--html-idd-add-file-link-to-directory-of-buffer)
|
98
|
405 (((idd-if-major-mode-p . w3-mode)
|
|
406 (idd-if-url-at-point-p . t))
|
2
|
407 hm--html-idd-add-html-link-from-w3-buffer-point)
|
98
|
408 (((idd-if-major-mode-p . w3-mode))
|
2
|
409 hm--html-idd-add-html-link-to-w3-buffer)
|
98
|
410 (((idd-if-local-file-p . t))
|
2
|
411 hm--html-idd-add-file-link-to-buffer)))
|
98
|
412 "The action list for the destination mode `hm--html-mode'.
|
70
|
413 Look at the description of the variable idd-actions")
|
0
|
414
|
2
|
415
|
|
416 ;;; The font lock keywords
|
|
417
|
98
|
418 (defconst hm--html-font-lock-keywords-1
|
2
|
419 (list
|
98
|
420 '("<!--.*-->" . font-lock-comment-face)
|
|
421 '("<[^>]*>" . font-lock-keyword-face)
|
|
422 '("<[^>=]*href[ \t\n]*=[ \t\n]*\"\\([^\"]*\\)\"" 1 font-lock-string-face t)
|
|
423 '("<[^>=]src[ \t\n]*=[ \t\n]*\"\\([^\"]*\\)\"" 1 font-lock-string-face t))
|
|
424 "Subdued level highlighting for hm--html-mode.")
|
|
425
|
|
426 (defconst hm--html-font-lock-keywords-2
|
|
427 (append hm--html-font-lock-keywords-1
|
|
428 (list
|
|
429 '(">\\([^<]*\\)</a>" 1 font-lock-reference-face)
|
|
430 '("</b>\\([^<]*\\)</b>" 1 bold)
|
|
431 '("</i>\\([^<]*\\)</i>" 1 italic)
|
|
432 ))
|
|
433 "Gaudy level highlighting for hm--html-mode.")
|
|
434
|
|
435 (defvar hm--html-font-lock-keywords hm--html-font-lock-keywords-1
|
2
|
436 "Default expressions to highlight in the hm--html-mode.")
|
|
437
|
0
|
438
|
98
|
439
|
2
|
440 ;;; The Prefix- Key for the keytables
|
|
441 (defvar hm--html-minor-mode-prefix-key "\C-z"
|
|
442 "The prefix key for the keytables in the `hm--html-minor-mode'.")
|
|
443
|
|
444 (defvar hm--html-mode-prefix-key "\C-c"
|
|
445 "The prefix key for the hm--html keys in the `hm--html-mode'.")
|
|
446
|
|
447
|
|
448 ;;; The pulldown menu names
|
|
449 (defvar hm--html-minor-mode-pulldown-menu-name "HM-HTML"
|
|
450 "The name of the pulldown menu in the minor html mode.")
|
|
451
|
|
452 (defvar hm--html-mode-pulldown-menu-name "HTML"
|
|
453 "The name of the pulldown menu in the major html mode.")
|
|
454
|
|
455
|
|
456 ;;; The hook variables
|
|
457 (defvar hm--html-load-hook nil
|
|
458 "*Hook variable to execute functions after loading the package.")
|
0
|
459
|
2
|
460 (defvar hm--html-mode-hook nil
|
70
|
461 "This hook will be called each time, when the hm--html-mode is invoked.")
|
2
|
462
|
|
463
|
|
464 ;;; For the file html-view.el
|
|
465 ;;; There are also some other variables in hmtl-view.el
|
|
466 ;;; Look at that file, if you've trouble with the functions
|
|
467 ;;; to preview the html document with the Mosaic
|
|
468 (defvar html-view-mosaic-command "/sol/www/bin/mosaic"
|
70
|
469 "The command that runs Mosaic on your system")
|
0
|
470
|
2
|
471 (defvar html-sigusr1-signal-value 16
|
|
472 "Value for the SIGUSR1 signal on your system.
|
|
473 See, usually, /usr/include/sys/signal.h.
|
|
474 SunOS 4.1.x : (setq html-sigusr1-signal-value 30)
|
|
475 SunOS 5.x : (setq html-sigusr1-signal-value 16)
|
|
476 Linux : (setq html-sigusr1-signal-value 10))")
|
|
477
|
|
478
|
100
|
479 ;;; Meta information
|
|
480 (defvar hm--html-meta-name-alist '(("Expires") ("Keys") ("Author"))
|
|
481 "*Alist with possible names for the name or http-equiv attribute of meta.")
|
|
482
|
98
|
483 ;;; indentation
|
|
484
|
|
485 (defvar hm--html-disable-indentation nil
|
|
486 "*Set this to t, if you want to disable the indentation in the hm--html-mode.
|
|
487 And may be send me (muenkel@tnt.uni-hannover.de) a note, why you've
|
|
488 done this.")
|
|
489
|
|
490 (defvar hm--html-inter-tag-indent 2
|
|
491 "*The indentation after a start tag.")
|
|
492
|
|
493 (defvar hm--html-comment-indent 5
|
|
494 "*The indentation of a comment.")
|
|
495
|
|
496 (defvar hm--html-intra-tag-indent 2
|
|
497 "*The indentation after the start of a tag.")
|
|
498
|
|
499 (defvar hm--html-tag-name-alist
|
|
500 '(("!--" (:hm--html-one-element-tag t))
|
100
|
501 ("!doctype" (:hm--html-one-element-tag t))
|
|
502 ("isindex" (:hm--html-one-element-tag t)
|
|
503 (:hm--html-optional-attributes (prompt)))
|
|
504 ("base" (:hm--html-one-element-tag t)
|
|
505 (:hm--html-required-attributes (href)))
|
|
506 ("meta" (:hm--html-one-element-tag t)
|
|
507 (:hm--html-required-attributes (content))
|
|
508 (:hm--html-optional-attributes (http-equiv name)))
|
|
509 ("link" (:hm--html-one-element-tag t)
|
|
510 (:hm--html-optional-attributes (href rel rev title)))
|
|
511 ("hr" (:hm--html-one-element-tag t)
|
|
512 (:hm--html-optional-attributes (align noshade size width)))
|
|
513 ("input" (:hm--html-one-element-tag t)
|
|
514 (:hm--html-optional-attributes
|
|
515 (type name value checked size maxlength src align)))
|
|
516 ("img" (:hm--html-one-element-tag t)
|
|
517 (:hm--html-required-attributes (src))
|
|
518 (:hm--html-optional-attributes
|
|
519 (alt align height width border hspace vspace usemap ismap)))
|
|
520 ("param" (:hm--html-one-element-tag t)
|
|
521 (:hm--html-required-attributes (name))
|
|
522 (:hm--html-optional-attributes (value)))
|
|
523 ("br" (:hm--html-one-element-tag t)
|
|
524 (:hm--html-optional-attributes (clear)))
|
|
525 ("basefont" (:hm--html-one-element-tag t)
|
|
526 (:hm--html-optional-attributes size))
|
|
527 ("area" (:hm--html-one-element-tag t)
|
|
528 (:hm--html-required-attributes (alt))
|
|
529 (:hm--html-optional-attributes (shape coords href nohref)))
|
|
530 ("option" (:hm--html-one-element-tag t)
|
|
531 (:hm--html-optional-attributes (selected value)))
|
|
532
|
|
533 ("html" (:hm--html-two-element-tag t))
|
|
534 ("head" (:hm--html-two-element-tag t))
|
|
535 ("body" (:hm--html-two-element-tag t)
|
|
536 (:hm--html-optional-attributes (bgcolor text link vlink alink background))
|
|
537 )
|
|
538 ("h1" (:hm--html-two-element-tag t)
|
|
539 (:hm--html-optional-attributes (align)))
|
|
540 ("h2" (:hm--html-two-element-tag t)
|
|
541 (:hm--html-optional-attributes (align)))
|
|
542 ("h3" (:hm--html-two-element-tag t)
|
|
543 (:hm--html-optional-attributes (align)))
|
|
544 ("h4" (:hm--html-two-element-tag t)
|
|
545 (:hm--html-optional-attributes (align)))
|
|
546 ("h5" (:hm--html-two-element-tag t)
|
|
547 (:hm--html-optional-attributes (align)))
|
|
548 ("h6" (:hm--html-two-element-tag t)
|
|
549 (:hm--html-optional-attributes (align)))
|
|
550 ("address" (:hm--html-two-element-tag t))
|
|
551 ("p" (:hm--html-one-or-two-element-tag t)
|
|
552 (:hm--html-optional-attributes (align)))
|
|
553 ("ul" (:hm--html-two-element-tag t)
|
|
554 (:hm--html-optional-attributes (type compact)))
|
|
555 ("ol" (:hm--html-two-element-tag t)
|
|
556 (:hm--html-optional-attributes (type start compact)))
|
|
557 ("dl" (:hm--html-two-element-tag t)
|
|
558 (:hm--html-optional-attributes (compact)))
|
|
559 ("li" (:hm--html-one-or-two-element-tag t)
|
|
560 (:hm--html-optional-attributes (type (value "ol"))))
|
|
561 ("dt" (:hm--html-one-or-two-element-tag t))
|
|
562 ("dd" (:hm--html-one-or-two-element-tag t))
|
|
563 ("dir" (:hm--html-two-element-tag t)
|
|
564 (:hm--html-optional-attributes (compact)))
|
|
565 ("menu" (:hm--html-two-element-tag t)
|
|
566 (:hm--html-optional-attributes (compact)))
|
|
567 ("pre" (:hm--html-two-element-tag t)
|
|
568 (:hm--html-optional-attributes (width)))
|
|
569 ("div" (:hm--html-two-element-tag t)
|
|
570 (:hm--html-optional-attributes (align)))
|
|
571 ("center" (:hm--html-two-element-tag t))
|
|
572 ("blockquote" (:hm--html-two-element-tag t))
|
|
573 ("form" (:hm--html-two-element-tag t)
|
|
574 (:hm--html-optional-attributes (action method enctype)))
|
|
575 ("select" (:hm--html-two-element-tag t)
|
|
576 (:hm--html-required-attributes (name))
|
|
577 (:hm--html-optional-attributes (size multiple)))
|
|
578 ("textarea" (:hm--html-two-element-tag t)
|
|
579 (:hm--html-required-attributes (name rows cols)))
|
|
580 ("table" (:hm--html-two-element-tag t)
|
|
581 (:hm--html-optional-attributes
|
|
582 (align width border cellspacing cellpading)))
|
|
583 ("caption" (:hm--html-two-element-tag t)
|
|
584 (:hm--html-optional-attributes (align)))
|
|
585 ("tr" (:hm--html-one-or-two-element-tag t)
|
|
586 (:hm--html-optional-attributes (align valign)))
|
|
587 ("th" (:hm--html-one-or-two-element-tag t)
|
|
588 (:hm--html-optional-attributes
|
|
589 (nowrap rowspan colspan align valign width height)))
|
|
590 ("td" (:hm--html-one-or-two-element-tag t)
|
|
591 (:hm--html-optional-attributes
|
|
592 (nowrap rowspan colspan align valign width height)))
|
|
593 ("tt" (:hm--html-two-element-tag t))
|
|
594 ("i" (:hm--html-two-element-tag t))
|
|
595 ("b" (:hm--html-two-element-tag t))
|
|
596 ("u" (:hm--html-two-element-tag t))
|
|
597 ("strike" (:hm--html-two-element-tag t))
|
|
598 ("big" (:hm--html-two-element-tag t))
|
|
599 ("small" (:hm--html-two-element-tag t))
|
|
600 ("sub" (:hm--html-two-element-tag t))
|
|
601 ("sup" (:hm--html-two-element-tag t))
|
|
602 ("em" (:hm--html-two-element-tag t))
|
|
603 ("strong" (:hm--html-two-element-tag t))
|
|
604 ("dfn" (:hm--html-two-element-tag t))
|
|
605 ("code" (:hm--html-two-element-tag t))
|
|
606 ("samp" (:hm--html-two-element-tag t))
|
|
607 ("kbd" (:hm--html-two-element-tag t))
|
|
608 ("var" (:hm--html-two-element-tag t))
|
|
609 ("cite" (:hm--html-two-element-tag t))
|
|
610 ("a" (:hm--html-two-element-tag t)
|
|
611 (:hm--html-optional-attributes (name href rel rev title)))
|
|
612 ("applet" (:hm--html-two-element-tag t)
|
|
613 (:hm--html-required-attributes (code width height))
|
|
614 (:hm--html-optional-attributes (codebase alt name align hspace vspace)))
|
|
615 ("font" (:hm--html-two-element-tag t)
|
|
616 (:hm--html-optional-attributes (size color)))
|
|
617 ("map" (:hm--html-two-element-tag t)
|
|
618 (:hm--html-required-attributes (name)))
|
102
|
619 ("style" (:hm--html-two-element-tag t))
|
|
620 ("script" (:hm--html-two-element-tag t))
|
98
|
621 )
|
|
622 "An alist with tag names known by the `hm--html-mode'.
|
|
623 CURRENTLY THIS LIST CONTAINS NOT ALL TAGS!!!!.
|
|
624
|
|
625 It is used to determine, if a tag is a one element tag or not.
|
|
626
|
|
627 In the future it should also be used to get possible parameters of
|
100
|
628 the tag.
|
|
629
|
|
630 Use lower case characters in this list!!!!")
|
98
|
631
|
|
632
|
2
|
633 ;;; Announce the feature hm--html-configuration
|
|
634 (provide 'hm--html-configuration)
|
|
635
|