116
|
1 This README file describes the emacs lisp package hm--html-menus-5.5.
|
2
|
2
|
|
3 The package provides functions and various popup and pulldown menus
|
|
4 for a html mode called hm--html-mode, a mode for writing html pages.
|
102
|
5 It provides also a minor mode (hm--html-minor-mode), which can be used
|
|
6 together with another html major mode, like the psgml-html mode in the
|
|
7 XEmacs 19.14.
|
0
|
8
|
2
|
9 It has an interface to view the html documents in a W3 browser with
|
|
10 Netscape, the w3-package from William M. Perry and Mosaic with the
|
|
11 file html-view.el from Ron Tapia. It provides also a drag and drop
|
|
12 interface, which makes it very easy to insert links or images, by just
|
|
13 clicking on them.
|
0
|
14
|
98
|
15 Look at the file NEWS, to see what is new in this release. Some
|
|
16 of the major changes are also listed in the ANNOUNCEMENT file.
|
0
|
17
|
2
|
18 You should (but don't need) also get the w3 package from:
|
0
|
19
|
|
20 cs.indiana.edu:/pub/elisp/w3/w3.tar.z
|
|
21
|
|
22 which provides an world wide web browser mode for the xemacs, emacs
|
|
23 and epoch.
|
|
24
|
|
25
|
98
|
26 This package is tested with the xemacs 19.15 on Suns with SunOS 5.5
|
|
27 and on PC's with linux. But it should work also on other (possibly
|
|
28 only UNIX ?) platforms.
|
0
|
29
|
98
|
30 Read the file README-EMACS-19, if you want to use this package with
|
|
31 GNU Emacs 19.
|
0
|
32
|
|
33 Thanks to Richard Stallman, who has helped me to port this package to
|
|
34 the Emacs 19 and thanks to John Ladwig, who has corrected a lot of the
|
98
|
35 text and comments in this package and to all the other people like
|
100
|
36 Jerry G. DeLapp, Andreas Ernst, Bob Weiner and so on, who had provided
|
|
37 code, ideas, bug fixes or bug reports for this package.
|
0
|
38
|
|
39
|
|
40 The package consists of the following files:
|
|
41
|
|
42 README : this file;
|
|
43 README-EMACS-19 : only for the GNU Emacs 19 user;
|
|
44 ANNOUNCEMENT : Text of the announcement of this package;
|
|
45 LSM : Entry for the Linux Software Map;
|
|
46 NEWS : Change logfile;
|
|
47 adapt.el : provides functions to use this package
|
|
48 with the GNU Emacs 19
|
|
49 hm--html.el : provides functions to write html pages;
|
102
|
50 in this file are all commands defined,
|
|
51 which inserts html elements and entities;
|
98
|
52 hm--html-indentation.el : provides the indentation stuff;
|
100
|
53 hm--html-keys.el : provides the keybindings;
|
2
|
54 hm--html-menu.el : provides the menus;
|
|
55 hm--html-mode.el : provides the functions for the definition
|
|
56 of the hm--html-mode; this is now the
|
|
57 main file of the package;
|
102
|
58 hm--html-not-standard.el : provides functions to insert some
|
116
|
59 non standard html elements;
|
102
|
60 this file is not evaluated by default;
|
0
|
61 hm--html-configuration.el : configuration file for the html mode;
|
2
|
62 choose this as system configuration file;
|
|
63 hm--html-drag-and-drop.el : defines the HTML- specific functions
|
|
64 for the drag and drop interface;
|
|
65 hm--date.el : defines the function hm--date, which
|
0
|
66 returns the date in the format
|
|
67 "day-month-year" like "30-Jun-1993".
|
|
68 html-view.el : Ron Tapia's html-view.el to view html-pages
|
116
|
69 in the Xmosaic; it is patched for the use
|
0
|
70 with the xemacs;
|
2
|
71 internal-drag-and-drop.el : provides the general (html-mode
|
|
72 independend functions) of the drag and
|
|
73 drop interface;
|
0
|
74 templates.doc : describes the syntax of the templates
|
|
75 provided in the file tmpl-minor-mode.el
|
|
76 tmpl-minor-mode.el : provides functions for the tmpl-minor-mode;
|
|
77 with this mode you can expand templates,
|
|
78 which are described in the file
|
|
79 templates-syntax.doc (look at the files
|
116
|
80 command-description.html.tmpl and
|
98
|
81 frame.html.tmpl for examples);
|
0
|
82 templates can be expanded automatically, if
|
|
83 you include a file with templates via the
|
98
|
84 html pulldown menu item "Templates ..."
|
|
85 or with the item "Templates (fixed dirs)...";
|
|
86 command-description.html.tmpl : Templatefile for the use with the
|
0
|
87 tmpl-minor-mode;
|
98
|
88 frame.html.tmpl : Templatefile, provides a simple frame;
|
116
|
89 doc/hm--html-mode.texinfo : Package documentation in the Texinfo format;
|
|
90 doc/umlaute.texinfo : Texinfo include file for german vowel
|
|
91 mutation (deutsche Umlaute);
|
0
|
92
|
|
93
|
|
94
|
|
95
|
|
96 INSTALLATION:
|
|
97 =============
|
|
98
|
|
99 Note: In this version the setting of the environment variables
|
|
100 HTML_CONFIG_FILE and HTML_USER_CONFIG_FILE are no longer necessary,
|
116
|
101 if you put the user configuration file in the home directory and
|
102
|
102 the system configuration file in one of the load path directories
|
|
103 of your XEmacs or Emacs 19.
|
0
|
104
|
2
|
105 1. Put all the *.el files in one of your xemacs (or emacs) lisp load
|
|
106 directories (i.e. lisp/packages).
|
0
|
107
|
|
108 2. Put the following in your .emacs (or default.el or site-init.el):
|
|
109
|
2
|
110 (autoload 'hm--html-mode "hm--html-mode" "HTML major mode." t)
|
|
111 (autoload 'hm--html-minor-mode "hm--html-mode" "HTML minor mode." t)
|
|
112 (or (assoc "\\.html$" auto-mode-alist)
|
|
113 (setq auto-mode-alist (cons '("\\.html$" . hm--html-mode)
|
0
|
114 auto-mode-alist)))
|
|
115
|
|
116 (autoload 'tmpl-expand-templates-in-buffer "tmpl-minor-mode"
|
|
117 "Expand all templates in the current buffer." t)
|
|
118
|
|
119 (autoload 'html-view-start-mosaic "html-view" "Start Xmosaic." t)
|
|
120 (autoload 'html-view-view-buffer
|
|
121 "html-view"
|
|
122 "View the current buffer in Xmosaic."
|
|
123 t)
|
|
124 (autoload 'html-view-view-file
|
|
125 "html-view"
|
|
126 "View a file in Xmosaic."
|
|
127 t)
|
|
128 (autoload 'html-view-goto-url
|
|
129 "html-view"
|
|
130 "Goto url in Xmosaic."
|
|
131 t)
|
|
132 (autoload 'html-view-get-display
|
|
133 "html-view"
|
|
134 "Get the display for Xmosaic (i.e. hostxy:0.0)."
|
|
135 t)
|
|
136 (autoload 'w3-preview-this-buffer "w3" "WWW Previewer" t)
|
|
137 (autoload 'w3 "w3" "WWW Browser" t)
|
|
138 (autoload 'w3-open-local "w3" "Open local file for WWW browsing" t)
|
|
139 (autoload 'w3-fetch "w3" "Open remote file for WWW browsing" t)
|
|
140 (autoload 'w3-use-hotlist "w3" "Use shortcuts to view WWW docs" t)
|
|
141
|
2
|
142 The above lines assume that you have not installed already another
|
|
143 html mode. If this isn't true, then you should use the following
|
|
144
|
|
145 (setq auto-mode-alist (cons '("\\.html$" . hm--html-mode)
|
|
146 auto-mode-alist))
|
|
147
|
|
148 instead of
|
|
149
|
|
150 (or (assoc "\\.html$" auto-mode-alist)
|
|
151 (setq auto-mode-alist (cons '("\\.html$" . hm--html-mode)
|
|
152 auto-mode-alist)))
|
|
153
|
|
154 It could also be, that you've already the autoload lines for
|
|
155 the w3 package in your emacs.
|
0
|
156
|
102
|
157 If you want to use this the hm--html-minor-mode together
|
|
158 with the psgml-html modes, then you should add the following
|
|
159 line (works only in XEmacs version >= 19.15 and != 20.0)
|
|
160 (add-hook 'html-mode-hook 'hm--html-minor-mode)
|
|
161
|
98
|
162 3. Set (if you want) the environment variable HTML_CONFIG_FILE
|
|
163 to the html system configuration file i.e.:
|
0
|
164 setenv HTML_CONFIG_FILE /usr/xemacs/lisp/hm--html-configuration.el
|
|
165
|
|
166 4. Set (if you want) the environment variable HTML_USER_CONFIG_FILE to
|
|
167 the html user configuration file i.e.:
|
|
168 setenv HTML_USER_CONFIG_FILE ~/.hm--html-configuration.el
|
|
169 And put the file .hm--html-configuration.el in your Home directory.
|
|
170 An example for this user specific file is given below.
|
|
171
|
|
172 5. Check the files hm--html-configuration.el and
|
|
173 .hm--html-configuration.el whether all variables are set suitable for
|
98
|
174 you and your site or not. You can make changes in both of these files
|
|
175 and you can also create a site specific configuration file, called
|
|
176 hm--html-site-config-file.el and specified by the lisp variable
|
|
177 hm--html-site-config-file or the environment variable
|
|
178 HTML_SITE_CONFIG_FILE, and put your site specific settings in this
|
|
179 file. A site specific configuration file is useful, if you're a
|
|
180 system administrator and want to make site specific settings
|
|
181 without changing a file of this package or use the normal emacs
|
|
182 configuration files.
|
0
|
183 Note that .hm--html-configuration.el precedes the settings in
|
98
|
184 hm--html-site-config-file.el, which precedes the settings in
|
|
185 hm--html-configuration.el (user specific configuration overwrites
|
|
186 site specific configuration and site specific configuration
|
|
187 overwrites the settings made by the package).
|
0
|
188
|
|
189 Look at first at the following variables:
|
|
190
|
|
191 hm--html-signaturefile
|
|
192 hm--html-username
|
|
193 hm--html-template-dir
|
|
194 hm--html-favorite-http-server-host-name
|
|
195 html-document-previewer
|
2
|
196 html-view-mosaic-command
|
0
|
197 w3-default-homepage
|
|
198
|
|
199 6. If you want to use templatefiles, you should put these files
|
|
200 in the directory to which `hm--html-template-dir' points.
|
98
|
201 You can use the file command-description.html.tmpl as
|
0
|
202 an example.
|
|
203
|
|
204 7. If you don't want to use the feature of adding html comments
|
|
205 about the creation date and author and with a change log, then
|
|
206 you should set the following three variables to nil:
|
|
207 hm--html-automatic-changed-comment
|
|
208 hm--html-automatic-created-comment
|
|
209
|
|
210 8. If you don't want to set a date in the title line, than you should
|
|
211 set the following to nil:
|
|
212 hm--html-automatic-new-date
|
|
213
|
|
214 The following is an example for a user specific configuration file
|
|
215 called .hm--html-configuration.el. You should put such a file in your
|
|
216 home directory and put all the variable settings in it, which are user
|
|
217 specific.
|
|
218
|
|
219 ---- BEGIN of .hm--html-configuration.el ----
|
|
220 ;;; Private html configuration file
|
|
221
|
|
222 ;; Signature file
|
|
223 (setq hm--html-signature-file
|
|
224 "http://www.tnt.uni-hannover.de:80/data/info/www/tnt/org/tnt/whois/wissmit/muenkel.html")
|
|
225
|
|
226 ;; Username (Only necessary if it differs from the passwd entry)
|
|
227 (setq hm--html-username "Heiko Münkel")
|
|
228
|
|
229
|
|
230 ;; X Window System display for the html-view
|
|
231 (setq html-view-display "daedalus:0.0")
|
|
232
|
|
233
|
|
234 ;; Use the expert menus?
|
|
235 (setq hm--html-expert t)
|
|
236
|
|
237
|
|
238 ;; Delete the automounter path prefix /tmp_mount
|
|
239 (setq hm--html-delete-wrong-path-prefix "/tmp_mount")
|
|
240
|
|
241
|
|
242 ;;;
|
|
243 ;
|
|
244 ; W3
|
|
245
|
|
246 ;; Default Home Page for w3-mode in lemacs or GNU Emacs
|
|
247 (setq w3-default-homepage "file:/home/muenkel/data/docs/www/home.html")
|
|
248 ---- END of .hm--html-configuration.el ----
|
|
249
|
|
250
|
|
251 Every hm--*.el file has a description and installation part. Look at first
|
|
252 at these parts, if you have any questions.
|
|
253
|
|
254 Look at first at the configuration files, if you have problems with
|
|
255 this package!
|
|
256
|
|
257
|
|
258 Sorry, I know that the documentation of this package isn't so good as
|
|
259 it should be, but at the moment I've not the time to make a better
|
|
260 one.
|
|
261
|
98
|
262 There is also a (small) html documentation about the package. You can
|
|
263 find it on:
|
|
264 http://www.tnt.uni-hannover.de/~muenkel/software/own/hm--html-menus/overview.html
|
0
|
265
|
|
266
|
|
267 Please send any bug reports, fixes or comments to
|
|
268 muenkel@daedalus.tnt.uni-hannover.de
|
|
269
|
|
270
|
|
271 I hope these files will be useful,
|
|
272
|
|
273 Heiko
|
|
274
|
|
275
|