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