[ < ] [ > ]   [ << ] [ 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) 
    				auto-mode-alist)))
    
    (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."
      t)
    (autoload 'tmpl-insert-template-file-from-fixed-dirs
              "tmpl-minor-mode"
      "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."
      t)
    
    (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 
    AUTOMATIC-EXPAND."
      t)
    
    (autoload 'html-view-start-mosaic "html-view" "Start Xmosaic." t)
    (autoload 'html-view-view-buffer 
      "html-view"
      "View the current buffer in Xmosaic."
      t)
    (autoload 'html-view-view-file 
      "html-view"
      "View a file in Xmosaic."
      t)
    (autoload 'html-view-goto-url
      "html-view"
      "Goto url in Xmosaic."
      t)
    (autoload 'html-view-get-display
      "html-view"
      "Get the display for Xmosaic (i.e. hostxy:0.0)."
      t)
    

    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)
                                auto-mode-alist))
    

    instead of:

     
    (or (assoc "\\.html$" auto-mode-alist)
        (setq auto-mode-alist (cons '("\\.html$" . hm--html-mode) 
    			        auto-mode-alist)))
    
    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 shared group account on December, 19 2009 using texi2html 1.65.