                       Installation of ASN.1 mode
                          for Emacs and XEmacs
                     *******************************
Content :
 - Compilation
 - Modification of .emacs :
 - Documentation
 - Installation by super-user
 - Version of (X)Emacs

Compilation
***********

Type make to compile the source Emacs files (.el)

If you want to specify the emacs to use for compiling,
type "EMACS=command make"
If you are using XEmacs, you must type something like that :
EMACS=xemacs make

(NB : it is not necessary to compile this files.
 If you want to use this files for Emacs and for XEmacs, don't compile them!)

Type then
DEST=$HOME/emacs make install
($HOME/emacs is the directory of installation.
 You can give another name of directory)

Modification of .emacs :
************************

  For use the ASN.1 mode, add this lines in your ~/.emacs file :


(setq (load-path (cons (expand-file-name "~/emacs") load-path)))

;;; ASN.1 Mode
(autoload 'asn1-mode "asn1-mode"
  "Major mode for editing ASN.1 specifications." t)
(setq auto-mode-alist
      (cons '("\\.[Aa][Ss][Nn]\\([1]\\|[pP][pP]\\)?$" . asn1-mode)
	    auto-mode-alist))



  Replace the "~/emacs" in the first line by the install directory.

  Note : If the file ~/.emacs doesn't exist, create it !
         (This file is loaded at Emacs startup)

Documentation
*************

To build the documentation, type "make html" or "make ps"
Then, copy the files where you want :
cp *.ps ~/doc
cp *.html ~/doc

As many people don't know how to install the info files,
the info documentation is automatically copied with the .el files.
If you know how to install info files (i.e editing the "dir" file in one
of the directory of your SHELL variable "INFOPATH"), move this file.


Installation by super-user
**************************

Install the package in the directory site-lisp/ of Emacs.
ex:
make
DEST=/usr/local/emacs/site-lisp make install

Add the following lines to the file site-start.el of the directory site-lisp/
(if this file does not exist, create it).

;;; ASN.1 Mode
(autoload 'asn1-mode "asn1-mode"
  "Major mode for editing ASN.1 specifications." t)
(setq auto-mode-alist
      (cons '("\\.[Aa][Ss][Nn]\\([1]\\|[pP][pP]\\)?$" . asn1-mode)
	    auto-mode-alist))



Version of (X)Emacs
*******************

This packages will work with any version of Emacs or XEmacs greater than 20.

For the versions beetween 19.34 and 20, you have to install
the custom package (http://www.dina.kvl.dk/~abraham/custom/)
In this case, don't compile the .el files.

Emacs is avaible at :

 Unix :
 ---------------
  ftp://ftp.lip6.fr/pub/gnu/emacs/
  ftp://ftp.irisa.fr/pub/gnu/emacs/

 Windows 95 or NT :
 ---------------------------
  ftp://ftp.lip6.fr/pub/emacs/ntemacs/
  http://www.gnu.org/software/emacs/windows/ntemacs.html

XEmacs is avaible at :

 Unix :
 ---------------
  ftp://ftp.lip6.fr/pub/emacs/xemacs/
  ftp://ftp.sunet.se/pub/gnu/xemacs/
  ftp://sunsite.auc.dk/pub/emacs/xemacs/

 Windows 95 or NT :
 ---------------------------
   No version.
