|
From: | Raymond |
Subject: | How to indent C/C++ as VI. |
Date: | Mon, 06 Jun 2005 17:12:58 +0800 |
User-agent: | Mozilla Thunderbird 1.0.2 (Windows/20050317) |
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 <iostream> int main(int argc, char* argv[]) { <TAB>std::cout << "Hello world!" <TAB><TAB><<std::endl; <TAB>return 0; } Are there any indent mode compatible with this mode. Thank you very much. Raymond
[Prev in Thread] | Current Thread | [Next in Thread] |