[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

5. Customization

You should be able to use the package after its installation without any further customization. But it contains a lot of user variables to adapt the package better to your special needs. How to do this is described in this chapter.

Since the XEmacs 19.15 and 20.2 a special package can be used for the customization of lisp packages. This package uses now also this feature. Therefore you can set all user variables with the help of the Customize submenu, which can be selected in the Option menu. If you use it, the variables will currently be saved in a special customization file and not in one of the configuration files (see section Customization (Configuration) Files) of this package. Please look at the `NEWS' file or the info manuals of the XEmacs to find out more about the customization package.

5.1 Customization (Configuration) Files  
5.2 Customization Variables  


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

5.1 Customization (Configuration) Files

This package uses 3 different files to customize the mode, but you need not use all of them. Only one of them, the file `hm--html-configuration.el' is delivered together with the package. The reason for three different files is to provide the opportunity to have different customization for the package, the site and the user. There's also a pulldown menu item to reload all customization files. The files are described in the following sections.

5.1.1 Where Are All The Customization Variables Defined  
5.1.2 Where To Put Site Specific Customization  
5.1.3 Where To Put User Specific Customization  


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

5.1.1 Where Are All The Customization Variables Defined

All variables which can be used to customize the mode are defined in the package configuration file `hm--configuration.el'. You should take a look at this file if you don't find how to customize a feature in this documentation (the documentation of a program is never as complete as its program code :-).

This file is searched in one of your lisp load directories. You can change this by setting the environment variable HTML_CONFIG_FILE to another file. But I don't recommend this.

Note: This file is loaded before the other customization files, so that its definitions could be overwritten. All variables are set by defvar, so that its values could also be overwritten with setq in any standard emacs customization files (e.g. in `.emacs').


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

5.1.2 Where To Put Site Specific Customization

In general all users at a site are writing their html pages for the same WWW server. Therefore it is very likely that most of the customizations are site specific, and only a few are user specific. However, you don't have to use a site specific customization if you don't want one.

If you'd like to make a site specific customization of hm--html-mode, it's possible to put it in a special file called `hm--site-configuration-file.el'. If you do this, you have to set either the lisp variable hm--html-site-config-file or the environment variable HTML_SITE_CONFIG_FILE to the file and its path. If you write the filename without its extension (.el), emacs tries first to load a compiled version of the file.

The environment variables overwrite the lisp variables.

You can prevent the loading of the site specific customization file by starting the emacs with the -no-site-file flag.

You can also put the site specific customization in any standard emacs customization file like, `default.el'. But an advantage to using `hm--site-configuration-file.el' is that it is very likely you will be able to use this file with future versions of the package. I'll try to make it as backward compatible as possible.

Note: This file is loaded after the package customization file and before the user customization file.


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

5.1.3 Where To Put User Specific Customization

User specific customization can be put in the file `.hm--html-configuration.el', which is searched by default in the home directory of the user. This can be overwritten by setting either the environment variable HTML_USER_CONFIG_FILE or the lisp variable hm--html-user-config-file to the name of the file and its path. If you write the filename without its extension (.el), emacs tries first to load a compiled version of the file.

If neither the environment variable nor the lisp variable is set, the variable init-file-user will be respected. Therefore you'll get `~other-user/.hm--html-configuration.el', if you've started the emacs with the options -u other-user. In all cases, no user specific customization file will be loaded, if the -q option was given to the emacs.

You can also put the user specific customization in your `.emacs'. It's up to you to decide which way is better.

Note: This file is loaded after the package and the site specific one. Therefore it overwrites all other customization files.


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

5.2 Customization Variables

In the following subsections the main customization variables are described.

5.2.1 User Name/Signature  
5.2.2 Switching Between Expert And Novice Menus  
5.2.3 HTML Doctype  
5.2.4 Defaults Used For Generating Links  
5.2.5 Templates  
5.2.6 Deleting Automounter Path Prefix  
5.2.7 Automatic Insert Of Information  
5.2.8 Latin 1 Characters  
5.2.9 Drag And Drop  
5.2.10 Font Lock Keywords  
5.2.11 Prefix Keys  
5.2.12 Pulldown Menu Names  
5.2.13 Hook Variables  
5.2.14 Previewing HTML Files  
5.2.15 Meta Element  
5.2.16 Indentation  


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

5.2.1 User Name/Signature


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

5.2.2 Switching Between Expert And Novice Menus


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

5.2.3 HTML Doctype


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

5.2.4 Defaults Used For Generating Links

One of the main features of hm--html-mode is its easy ways to insert special links to html pages, ftp servers, news servers and so on. I think that most people will have their own (this may be site specific. See section Where To Put Site Specific Customization.) favourite servers, directories and so on. You may customize the default values and the alists with useful alternatives, which are used from the mode in the inserting functions for the links.

5.2.4.1 Your Favourite HTTP Server  
5.2.4.2 Links to WWW Server  
5.2.4.3 Links To Files  
5.2.4.4 Links To FTP Servers  
5.2.4.5 Links To Emacs Info Files  
5.2.4.6 Links To Gopher Servers  
5.2.4.7 Links To WAIS Gateways  
5.2.4.8 Links To The Mail Gateway  
5.2.4.9 Links For Sending Mail  
5.2.4.10 Links to CGI scripts  
5.2.4.11 Links To The Program Gateway  
5.2.4.12 Links To The Local Program Gateway  
5.2.4.13 URL For Forms And Image Tags  
5.2.4.14 Marking Of Examples  


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

5.2.4.1 Your Favourite HTTP Server


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

5.2.4.2 Links to WWW Server


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

5.2.4.3 Links To Files


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

5.2.4.4 Links To FTP Servers


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

5.2.4.5 Links To Emacs Info Files


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

5.2.4.6 Links To Gopher Servers

There are a lot of useful gopher information servers on the Internet. You can access them with a gopher browser or with a WWW browser. In the latter case you have to use the gopher gateway.


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

5.2.4.7 Links To WAIS Gateways

You can either make a link direct to a WAIS server (it may be that not all WWW browsers support this) or an http link to a server (relay host) which queries the WAIS server. The variables hm--html-wais-hostname:port-default and hm--html-wais-hostname refer to these relay hosts and the variables hm--html-wais-servername:port-default and hm--html-wais-servername:port-alist refer to the WAIS servers.


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

5.2.4.8 Links To The Mail Gateway

The following variables are for customizing the insertion of links to a mail folder. You need a special server for this, which sends the email back to the browser.


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

5.2.4.9 Links For Sending Mail


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

5.2.4.10 Links to CGI scripts

CGI scripts are available on many WWW servers to start special programs (eg: cgi-man, to display man pages). Creating these links can be customized with the following varoables.


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

5.2.4.11 Links To The Program Gateway

The program gateway is a special TNT site specific gateway for starting programs out of a html page. The programs are started by a special server, which looks in an allowed file to determine if it is allowed to start the program. This is necessary because the programs are running under the user id of the server. We're only allowed to start simple display programs like man, ls and so on.


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

5.2.4.12 Links To The Local Program Gateway

Another TNT site specific way to start programs from a html page. These programs are started with the id of the user on the host where the client (browser) is running. Therefore no restriction about the allowed programs is made. With this you can start only programs and do only things, which you can do also without the WWW browser.


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

5.2.4.13 URL For Forms And Image Tags


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

5.2.4.14 Marking Of Examples

The following variables are for marking the examples in the help buffer.


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

5.2.5 Templates

For inserting html template files you can customize where you keep your templates.


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

5.2.6 Deleting Automounter Path Prefix


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

5.2.7 Automatic Insert Of Information

The hm--html-mode automatically inserts some useful information in html pages. This behaviour can be changed by the following variables.


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

5.2.8 Latin 1 Characters


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

5.2.9 Drag And Drop


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

5.2.10 Font Lock Keywords


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

5.2.11 Prefix Keys


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

5.2.12 Pulldown Menu Names

Perhaps you'd like to change the names to get the same menu names in the major and in the minor modes of the hm--html-menus package.


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

5.2.13 Hook Variables

You may use the following two variables, if you'd like to call special functions each time the major html mode is entered or the package is loaded.


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

5.2.14 Previewing HTML Files

The following two variables are only used, if you preview html documents with Mosaic. There are also some other variables in `html-view.el'. See section Contents. Look at that file if you have trouble with the functions to preview the html document with Mosaic.


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

5.2.15 Meta Element


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

5.2.16 Indentation


[ << ] [ >> ]           [Top] [Contents] [Index] [ ? ]

This document was generated by XEmacs shared group account on December, 19 2009 using texi2html 1.65.