File: mh-e_4.html

package info (click to toggle)
mh-book 9910-1
  • links: PTS
  • area: main
  • in suites: potato
  • size: 8,136 kB
  • ctags: 2,983
  • sloc: sh: 2,048; perl: 773; ansic: 279; makefile: 52; csh: 8
file content (116 lines) | stat: -rw-r--r-- 4,023 bytes parent folder | download | duplicates (2)
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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
<HTML>
<HEAD>
<!-- This HTML file has been created by texi2html 1.51
     from ../mh-e.texi on 25 April 1999 -->

<TITLE>mh-e - Getting Started</TITLE>
</HEAD>
<BODY BGCOLOR="#FFFFFF">
Go to the <A HREF="mh-e_1.html">first</A>, <A HREF="mh-e_3.html">previous</A>, <A HREF="mh-e_5.html">next</A>, <A HREF="mh-e_84.html">last</A> section, <A HREF="mh-e_toc.html">table of contents</A>.
<P><HR><P>


<H2><A NAME="SEC4" HREF="mh-e_toc.html#TOC4">Getting Started</A></H2>

<P>
Because there are many old versions of mh-e out there, it is important to
know which version you have.  I'll be talking about Version 5 which
is similar to Version 4 and vastly different from Version 3.

</P>
<P>
First, enter <KBD>M-x load-library <KBD>RET</KBD> mh-e
<KBD>RET</KBD></KBD>. <A NAME="DOCF4" HREF="mh-e_foot.html#FOOT4">(4)</A>  The message,
<SAMP>`Loading mh-e...done'</SAMP>, should be displayed in the minibuffer.  If
you get <SAMP>`Cannot open load file: mh-e'</SAMP>, then your Emacs is very
badly configured, or mh-e is missing.  You may wish to have your system
administrator install a new Emacs or at least the latest mh-e files.

</P>
<P>
Having loaded mh-e successfully, enter <KBD>M-x mh-version <KBD>RET</KBD></KBD>.
The version of mh-e should be displayed.  Hopefully it says that you're
running Version 5.0.2 which is the latest version as of
this printing.  If instead Emacs beeps and says <SAMP>`[No match]'</SAMP>, then
you're running an old version of mh-e.

</P>
<P>
If these tests reveal a non-existent or old version of mh-e, please
consider obtaining a new version.  You can have your system
administrator upgrade the system-wide version, or you can install your
own personal version.  It's really quite easy; instructions for getting
and installing mh-e are in section <A HREF="mh-e_75.html#SEC75">Getting mh-e</A>.  In the meantime, see
section <A HREF="mh-e_80.html#SEC80">Changes to mh-e</A>, which compares the old and new names of commands,
functions, variables, and buffers.

</P>
<P>
<A NAME="IDX23"></A>
<A NAME="IDX24"></A>

</P>
<P>
Also, older versions of mh-e assumed that you had already set up your MH
environment.  Newer versions set up a new MH environment for you by
running <CODE>install-mh</CODE> and notifying you of this fact with the
message in a temporary buffer:

</P>

<PRE>
I'm going to create the standard MH path for you.
</PRE>

<P>
Therefore, if you've never run MH before and you're using an old version
of mh-e, you need to run <CODE>install-mh</CODE> from the shell before you
continue the tour.  If you don't, you'll be greeted with the error
message: <SAMP>`Can't find MH profile'</SAMP>.

</P>
<P>
<A NAME="IDX25"></A>
<A NAME="IDX26"></A>

</P>
<P>
If, during the tour described in this chapter, you see a message like:
<SAMP>`Searching for program: no such file or directory,
/usr/local/bin/mhpath'</SAMP>, it means that the MH programs and files are kept
in a nonstandard directory.  In this case, simply add the following to
<TT>`~/.emacs'</TT> and restart <CODE>emacs</CODE>.

</P>
<P>
<A NAME="IDX27"></A>
<A NAME="IDX28"></A>

</P>

<PRE>
(setq mh-progs "<VAR>/path/to/MH/binary/directory/</VAR>")
(setq mh-lib "<VAR>/path/to/MH/library/directory/</VAR>")
</PRE>

<P>
<A NAME="IDX29"></A>

</P>
<P>
The <SAMP>`~'</SAMP> notation used by <TT>`~/.emacs'</TT> above represents your home
directory.  This is used by the <CODE>bash</CODE> and <CODE>csh</CODE> shells.  If
your shell does not support this feature, you could use the environment
variable <SAMP>`$HOME'</SAMP> (such as <TT>`$HOME/.emacs'</TT>) or the absolute path
(as in <TT>`/home/wohler/.emacs'</TT>) instead.

</P>
<P>
At this point, you should see something like the screen in the
figure in section <A HREF="mh-e_6.html#SEC6">Receiving Mail</A>.  We're now ready to move on.

</P>
<P><HR><P>
Go to the <A HREF="mh-e_1.html">first</A>, <A HREF="mh-e_3.html">previous</A>, <A HREF="mh-e_5.html">next</A>, <A HREF="mh-e_84.html">last</A> section, <A HREF="mh-e_toc.html">table of contents</A>.
</BODY>
</HTML>