From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: C K Kashyap Newsgroups: gmane.emacs.help Subject: Re: question about indenting Date: Fri, 15 Jul 2011 14:34:29 +0530 Message-ID: References: <95462880.20110715090917@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=000e0cd5f2e4eb8e2304a817ef06 X-Trace: dough.gmane.org 1310720787 24557 80.91.229.12 (15 Jul 2011 09:06:27 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 15 Jul 2011 09:06:27 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: pingved@gmail.com Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jul 15 11:06:22 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 1QheLk-0008Tn-NW for geh-help-gnu-emacs@m.gmane.org; Fri, 15 Jul 2011 11:06:20 +0200 Original-Received: from localhost ([::1]:46708 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QheLi-00006p-OJ for geh-help-gnu-emacs@m.gmane.org; Fri, 15 Jul 2011 05:06:18 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:39312) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QheK1-00006J-EV for help-gnu-emacs@gnu.org; Fri, 15 Jul 2011 05:04:34 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QheK0-0008HX-57 for help-gnu-emacs@gnu.org; Fri, 15 Jul 2011 05:04:33 -0400 Original-Received: from mail-fx0-f52.google.com ([209.85.161.52]:39238) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QheJz-0008HK-Gi for help-gnu-emacs@gnu.org; Fri, 15 Jul 2011 05:04:32 -0400 Original-Received: by fxd18 with SMTP id 18so2057289fxd.39 for ; Fri, 15 Jul 2011 02:04:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=3QhZ87XmgDIOqEEHrjnqsEkpqCGCVwL+rf0U5WrWjug=; b=NIjZhJbIbGF4z6jAPqkUuglvB3jv7HcgynibcWOa3NwGlzJs7VFyCVlNY9Q69C2sQ+ dlYLiK+/PIKW2sKQ3lRzBdvoqivVQjXoBYLg3x71rPLh/dkp6l91YQk8fA3zGefDg0Nz 2jDoigMaVXWj+GKIUxUadesJtG2PvFUDLMbyo= Original-Received: by 10.223.61.72 with SMTP id s8mr5066351fah.6.1310720669748; Fri, 15 Jul 2011 02:04:29 -0700 (PDT) Original-Received: by 10.223.115.82 with HTTP; Fri, 15 Jul 2011 02:04:29 -0700 (PDT) In-Reply-To: <95462880.20110715090917@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:81594 Archived-At: --000e0cd5f2e4eb8e2304a817ef06 Content-Type: text/plain; charset=ISO-8859-1 > > 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. Regards, Kashyap --000e0cd5f2e4eb8e2304a817ef06 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Hello to all! How i can indent strings in any mode, c-mode for example like this:

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



You could select the region (using the mouse or= M-h) and then press M-C-\ - this should indent the code.

Regards,
Kashyap
--000e0cd5f2e4eb8e2304a817ef06--