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

4. Installation

  1. Put all the *.el files in one of your XEmacs (or emacs) lisp load directories (e.g. site-lisp/hm--html-menus).

  2. For XEmacs only:
    Put the files `drop' and `dropmsk' in the directory specified by the lisp variable idd-data-directory. By default it is `<prefix>/lib/xemacs-<version>/etc/idd' (eg: if you have installed the XEmacs 19.15 at your site in `/usr/local', then it is the directory `/usr/local/xemacs/lib/xemacs-19.15/etc/idd'.

    If you'd like to put the files in another directory, then you must set the variable idd-data-directory to this directory (eg, to put in the directory `/usr/local/data': (setq idd-data-directory "/usr/local/data")

  3. Put the following in your .emacs (or default.el or site-init.el):
    (autoload 'hm--html-mode "hm--html-mode" "HTML major mode." t)
    (autoload 'hm--html-minor-mode "hm--html-mode" "HTML minor mode." t)
    (or (assoc "\\.html$" auto-mode-alist)
        (setq auto-mode-alist (cons '("\\.html$" . hm--html-mode) 
    (autoload 'tmpl-expand-templates-in-buffer "tmpl-minor-mode"
      "Expand all templates in the current buffer." t)
    (autoload 'tmpl-expand-templates-in-region "tmpl-minor-mode"
      "Expands the templates in the region from BEGIN to END.
    If BEGIN and END are nil, then the current region is used."
    (autoload 'tmpl-insert-template-file-from-fixed-dirs
      "Inserts a template FILE and expands it, if 
    `tmpl-automatic-expand' is t.
    This command tries to read the template file from a list of
    predefined directories (look at `tmpl-template-dir-list') and it 
    filters the contents of these directories with the regular 
    expression `tmpl-filter-regexp' (look also at this variable). 
    The command uses a history variable, which could be changed with the
    variable `tmpl-history-variable-name'.
    The user of the command is able to change interactively to another
    directory by entering at first the string \"Change the directory\".
    This may be too difficult for the user. Therefore another command
    called `tmpl-insert-template-file' exist, which doesn't use fixed
    directories and filters."
    (autoload 'tmpl-insert-template-file "tmpl-minor-mode"
      "Inserts a template FILE and expand it, 
    if `tmpl-automatic-expand' is t.
    Look also at `tmpl-template-dir-list', to specify a default template
    directory. You should also take a look at 
    `tmpl-insert-template-file-from-fixed-dirs', which has additional 
    advantages (and disadvantages :-).
    ATTENTION: The interface of this function has changed. The old 
    function had the argument list 
            (&optional TEMPLATE-DIR AUTOMATIC-EXPAND).
    The variables `tmpl-template-dir-list' and `tmpl-automatic-expand' 
    must now be used instead of the args TEMPLATE-DIR and 
    (autoload 'html-view-start-mosaic "html-view" "Start Xmosaic." t)
    (autoload 'html-view-view-buffer 
      "View the current buffer in Xmosaic."
    (autoload 'html-view-view-file 
      "View a file in Xmosaic."
    (autoload 'html-view-goto-url
      "Goto url in Xmosaic."
    (autoload 'html-view-get-display
      "Get the display for Xmosaic (i.e. hostxy:0.0)."

    The above lines assume that you have not already installed another html mode. If this isn't true, then you should use the following:

    (setq auto-mode-alist (cons '("\\.html$" . hm--html-mode)

    instead of:

    (or (assoc "\\.html$" auto-mode-alist)
        (setq auto-mode-alist (cons '("\\.html$" . hm--html-mode) 
    If you want to use the hm--html-minor-mode together with the psgml-html modes, then you should add the following line (works only in XEmacs version >= 19.15 and != 20.0):
    (add-hook 'html-mode-hook 'hm--html-minor-mode)

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

This document was generated by XEmacs Webmaster on October, 2 2007 using texi2html