From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Raymond Newsgroups: gmane.emacs.help Subject: How to indent C/C++ as VI. Date: Mon, 06 Jun 2005 17:12:58 +0800 Organization: SunSITE.dk - Supporting Open source Message-ID: <42a4139b$0$18640$14726298@news.sunsite.dk> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1118050507 2734 80.91.229.2 (6 Jun 2005 09:35:07 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 6 Jun 2005 09:35:07 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jun 06 11:35:06 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DfE0R-0001sW-Jt for geh-help-gnu-emacs@m.gmane.org; Mon, 06 Jun 2005 11:34:51 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DfE6i-0002Im-3g for geh-help-gnu-emacs@m.gmane.org; Mon, 06 Jun 2005 05:41:20 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!uninett.no!news.banetele.no!dotsrc.org!news.dotsrc.org!not-for-mail User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: en-us, en Original-Newsgroups: gnu.emacs.help Original-Lines: 20 Original-NNTP-Posting-Host: 63.96.162.1 Original-X-Trace: news.sunsite.dk DXC=Re8_mU\mKk`oTl; T5C6Qj2nogl==flHo Original-X-Complaints-To: staff@sunsite.dk Original-Xref: shelby.stanford.edu gnu.emacs.help:131803 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:27269 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:27269 Hi everyone. In cc-mode, Emacs can indent the C/C++ code by several modes, Such as bsd,cc-mode, gnu,stroustrup, whitesmith. But in my lab. The code was written by VI. And all C/C++ code is indented by TAB. Just like this: #include int main(int argc, char* argv[]) { std::cout << "Hello world!" <return 0; } Are there any indent mode compatible with this mode. Thank you very much. Raymond