1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93
|
Notes on installing inform-mode.
There are four options to install inform-mode: via the Marmalade Emacs
packaging system; using the package system on your OS; via the Makefile
if you are on a Unix-derived system, have access to the 'make' program
and have root access; or manually, which should work on all platforms.
Each is described further below. XEmacs users should also see note 6.
1. Via Marmalade
----------------
Marmalade (http://marmalade-repo.org/) is a packaging system for Emacs.
Follow the instructions on the website to add Marmalade to your list of
package sources. Then inside emacs run
M-x package-install RET inform-mode RET
2. Packaged versions
--------------------
Some GNU/Linux systems have inform-mode available via their packaging
systems. On Debian, Ubuntu or other derivatives you can run
apt-get install inform-mode
However, this may not provide the latest version: if you want this,
download the latest version from http://www.rupert-lane.org/inform-mode/
and try one of the following two methods.
3. Makefile
-----------
Edit the file 'Makefile' and replace the name of your emacs binary and
site-lisp directory if they are different.
Type
make
to byte-compile the source. Then as root, eg using sudo:
make install
to install the files to the site-lisp directory for your emacs so it is
available for all users on your system.
4. Manually
-----------
First, byte-compile the file by running the following command (all on
one line):
emacs -batch -q -no-site-file -eval "(setq load-path (cons (expand-file-name \".\") load-path))" --eval '(byte-compile-file "inform-mode.el")'
Next, copy inform-mode.elc to the directory you want to install it. If
you put the file in a non-standard place, tell emacs where to find it by
putting a line like:
(setq load-path (cons (expand-file-name "/path/to/file/") load-path))
in your .emacs.
5. Updating .emacs
------------------
For all options except 1) and 2) you will need to update your .emacs to
autoload inform-mode and make it recognise .inf and .h files. Add the
following:
(autoload 'inform-mode "inform-mode" "Inform editing mode." t)
(autoload 'inform-maybe-mode "inform-mode" "Inform/C header editing mode.")
(setq auto-mode-alist
(append '(("\\.h\\'" . inform-maybe-mode)
("\\.inf\\'" . inform-mode))
auto-mode-alist))
6. A note for XEmacs users
--------------------------
You may need to install extra packages for inform-mode to work. If you
are using the default XEmacs install on Windows, for example, you will
need to install the 'ispell' and 'eterm' packages.
# Local Variables:
# mode: text
# fill-column: 72
# End:
|