www.delorie.com/gnu/docs/emacs/cc-mode.html   search  
 
Buy the book!


CC Mode Manual

[Top] [Contents] [Index] [ ? ]

CC Mode Manual

CC Mode is a GNU Emacs mode for editing files containing C, C++, Objective-C, Java, CORBA IDL, and Pike code. It provides syntax-based indentation and has several handy commands and some minor modes to make the editing easier. Note that CC Mode does not provide font-locking; there are other Emacs packages for that.

1. Introduction  
2. Getting Connected  
3. New Indentation Engine  
4. Minor Modes  
5. Text Filling and Line Breaking  
6. Commands  
7. Customizing Indentation  
8. Syntactic Symbols  
9. Indentation Functions  
10. Performance Issues  
11. Limitations and Known Bugs  
A. Frequently Asked Questions  
B. Getting the Latest CC Mode Release  
C. Mailing Lists and Submitting Bug Reports  
D. Sample .emacs file  

 -- Indices ---

Concept Index  
Command Index  
Key Index  
Variable Index  

 -- The Detailed Node Listing ---

New Indentation Engine

3.1 Syntactic Analysis  
3.2 Indentation Calculation  

Minor Modes

4.1 Auto-newline Insertion  
4.2 Hungry-deletion of Whitespace  

Auto-newline Insertion

4.1.1 Hanging Braces  
4.1.2 Hanging Colons  
4.1.3 Hanging Semi-colons and Commas  
4.1.4 Other Electric Commands  
4.1.5 Clean-ups  

Commands

6.1 Indentation Commands  
6.2 Movement Commands  
6.3 Other Commands  

Customizing Indentation

7.1 Interactive Customization  
7.2 Permanent Customization  
7.3 Hooks  
7.4 Styles  
7.5 Advanced Customizations  

Styles

7.4.1 Built-in Styles  
7.4.2 Adding Styles  
7.4.3 File Styles  

Advanced Customizations

7.5.1 Custom Indentation Functions  
7.5.2 Custom Brace and Colon Hanging  
7.5.3 Customizing Semi-colons and Commas  
7.5.4 Other Special Indentations  


  webmaster     delorie software   privacy  
  Copyright 2003   by The Free Software Foundation     Updated Jun 2003