From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: pingved@gmail.com Newsgroups: gmane.emacs.help Subject: Re: question about indenting Date: Fri, 15 Jul 2011 20:54:12 +0400 Message-ID: <585300236.20110715205412@gmail.com> References: <95462880.20110715090917@gmail.com> <4B844315-239F-4935-8FE6-58C8DCD47779@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/html; charset=windows-1251 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1310759200 5304 80.91.229.12 (15 Jul 2011 19:46:40 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 15 Jul 2011 19:46:40 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jul 15 21:46:36 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QhoLM-0002dM-GZ for geh-help-gnu-emacs@m.gmane.org; Fri, 15 Jul 2011 21:46:36 +0200 Original-Received: from localhost ([::1]:35742 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QhoLL-0008AG-Fu for geh-help-gnu-emacs@m.gmane.org; Fri, 15 Jul 2011 15:46:35 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:45152) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qhnt2-00034O-UZ for help-gnu-emacs@gnu.org; Fri, 15 Jul 2011 15:17:22 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qhnsx-0008Ce-9h for help-gnu-emacs@gnu.org; Fri, 15 Jul 2011 15:17:20 -0400 Resent-Date: Fri, 15 Jul 2011 15:17:20 -0400 Resent-Message-Id: Original-Received: from mail-fx0-f52.google.com ([209.85.161.52]:39043) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qhnsw-0008CO-Mp for help-gnu-emacs@gnu.org; Fri, 15 Jul 2011 15:17:14 -0400 Original-Received: by fxd18 with SMTP id 18so2713247fxd.39 for ; Fri, 15 Jul 2011 12:17:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=date:from:x-priority:message-id:to:subject:in-reply-to:references :mime-version:content-type:content-transfer-encoding:resent-from; bh=OTZp8qpEEiH/TPJog/a/cTKg1rtCFvCzlteRJzIauG0=; b=Zsm1oorGarK21wNdIXb2PP6Fn3O0tBxA5Bj7hvIL0vd1PHv2jsV//GoDhyXzoHRl+V 8MHsy9CLnR3bzepP8ckPcAI0XAGCaX5KysAjx3bG0TzELrHCL2PD9d7AKDY1HbXoVTjX wETaohi31W0v1V9V/AFqtKMzs4dc6VC1lREIo= Original-Received: by 10.223.64.80 with SMTP id d16mr5772155fai.86.1310757433454; Fri, 15 Jul 2011 12:17:13 -0700 (PDT) Original-Received: from [10.40.67.28] ([92.62.57.179]) by mx.google.com with ESMTPS id 14sm959059fat.31.2011.07.15.12.17.12 (version=SSLv3 cipher=OTHER); Fri, 15 Jul 2011 12:17:12 -0700 (PDT) X-Priority: 3 (Normal) In-Reply-To: <4B844315-239F-4935-8FE6-58C8DCD47779@gmail.com> Resent-From: pingved@gmail.com X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.161.52 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:81605 Archived-At: Re: question about indenting =C7=E4=F0=E0=E2= =F1=F2=E2=F3=E9=F2=E5, Perry.

=C2=FB =EF=E8=F1=E0=EB=E8 15 =E8=FE=EB=FF 2011 =E3., 16:49:29:




On Jul 15, 2011= , at 4:04 AM, C K Kashyap wrote:

Hello to all!
How i can indent strings in any mode, c-mode for example like this:

void Test(void) {
 (3space)DWORD abc;
 (4space)exit(0);
 (4space){
 (4space)(3space)DWORD a;
 (4space)(4space)exit(0);
 (4space)}
}



You could select the region (using the mouse or M-h) and then press M-C-\ -= this should indent the code.
I think he is asking about how to set up c mode.  Noticed that his var= iable declarations are indented differently.

If you do M-x customize, then pick Programming, Languages, C you will get t= o a list of customizable options that affect how things are indented, etc.&= nbsp;
I know this. Fo= r my variant of using spaces for variables there is no options where/




I don't see som= ething specific for variable declarations though.  Perhaps someone els= e will chime in with some suggestions.

Good luck
Perry




-- 
=D1 =F3=E2=E0=E6=E5=ED=E8=E5=EC,
 Pingved                  = ;        
mailto:pingved@gmail.com