|
|
Sponsor |
Re: c_mode_hook configuration: msg#00007editors.jed.user
Hi! > Do you have a simple example that illustrates the problem? If so, > also provide the code with the desired indentation. With your code snippet (with C_INDENT = 3 and C_BRACE = 3 added to not have it indent by 4), I get this: int main () { <tab>if (foo) <tab><tab>{ <tab><tab><tab>bar(); <tab><tab>} <tab> <tab>switch (foo) <tab><tab>{ <tab><tab>case bar: <tab><tab><tab>break; <tab><tab>case baz: <tab><tab><tab>break; <tab><tab>default: <tab><tab><tab>break; <tab><tab>} } what I am trying to reproduce is: int main () { <tab>if (foo) <tab><tab>{ <tab><tab>bar(); <tab><tab>} <tab> <tab>switch (foo) <tab><tab>{ <tab><tab>case bar: <tab><tab><tab>break; <tab><tab>case baz: <tab><tab><tab>break; <tab><tab>default: <tab><tab><tab>break; <tab><tab>} } i.e, avoiding the extra indent inside braces for if/for/while/etc. (Not that I actually like this style, but since it is consistently applied to the source tree I am working with, getting my editor to comply would be nice). -- \\// Peter - http://www.softwolves.pp.se/
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: c_mode_hook configuration, John E. Davis |
|---|---|
| Next by Date: | JEDINIT environment variable, Ulli Horlacher |
| Previous by Thread: | Re: c_mode_hook configuration, John E. Davis |
| Next by Thread: | Re: c_mode_hook configuration, John E. Davis |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
Free MagazinesCisco NewsReceive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business. subscribe Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field. subscribe The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business. subscribe Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company. subscribe Total Telecom Total Telecom is "The Economist of the communications industry". subscribe |
Home | sitemap
| advertise | OSDir is
an inevitable website.
|