-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
105 lines (72 loc) · 3.48 KB
/
README
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
README for CC Mode 5.32
Current maintainer : Alan Mackenzie
Contact address : [email protected]
INTRODUCTION
The canonical web location for all knowledge CC Mode is:
<http://cc-mode.sourceforge.net/>
Please read the cc-mode.texi manual for details on using CC Mode.
This is available on-line from:
<http://cc-mode.sourceforge.net/cc-mode.html>
As of this writing (August 2011), CC Mode currently works
out of the box with XEmacs versions 21.4 and later, and with Emacs
versions 22 and later. (It might well still work with some earlier
versions and will very likely work with later versions too, when
they become available.)
MORE INFORMATION
Check out the CC Mode web site for the latest information,
updates, tips, installation and compatibility notes, etc. on using
CC Mode. The installation instructions given below are an excerpt
of the on-line instructions. If you have problems installing CC
Mode, please check out the URL above before submitting a bug
report. Thanks!
The MANIFEST file contains a description of all the files you
should have gotten with this distribution.
MANUALS
Preformatted versions of the manual in DVI, PostScript, and Info,
are all available at the CC Mode web page. The Info manual has
two variants, one for GNU Emacs, the other for XEmacs - the only
differences between them are the targets of some cross references
within the manual.
To build the manual yourself, you will need Texinfo 4.7 or later.
Simply type:
% makeinfo cc-mode.texi # For GNU Emacs
or
% makeinfo -DXEMACS cc-mode.texi # For XEmacs
To make the DVI version, type:
% texi2dvi cc-mode.texi
INSTALLATION
Here is a quick guide for installing CC Mode. For the latest
information on installing CC Mode, please see the CC Mode web site
given above.
If you're using XEmacs, make sure you've got the "advice" package
installed.
Byte Compiling
It is highly recommended that you byte-compile CC Mode for
performance reasons. Running CC Mode non-byte-compiled is not
supported.
You can compile CC Mode in the same way as any other package. To
compile it from a running (X)Emacs session:
M-0 M-x byte-recompile-directory RET /path/to/cc-mode RET
To compile CC Mode from the shell:
% cd /path/to/cc-mode
% $(EMACS) -batch -no-site-file -q -f batch-byte-compile cc-*.el
where $(EMACS) is either emacs or xemacs depending on the flavor
you use. Note that the byte compiled files from one version of
(X)Emacs are likely not to work on a different version - compile
them fresh when you upgrade your (X)Emacs version.
Installing
Put the compiled files somewhere (X)Emacs will find them, i.e. in
some path that's in the load-path variable. You must make sure
they are found before any CC Mode files which are distributed with
(X)Emacs. A directory has higher precendence than all directories
after it in the load-path list.
To test that you have things set up correctly, visit a C file and
then type:
M-x c-version RET
=> Using CC Mode version 5.XX
where XX is the correct minor revision number.
Compatibility Issues
CC Mode should work fine with most versions of Emacs and XEmacs
which aren't ancient (see the introduction above).
For more details about interactions with different packages, see
the CC Mode web page.