From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.help Subject: Re: Formatting code text Date: Sun, 19 Nov 2006 14:34:18 -0500 Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1163964879 23804 80.91.229.2 (19 Nov 2006 19:34:39 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 19 Nov 2006 19:34:39 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Nov 19 20:34:38 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GlsQw-0005Gv-U0 for geh-help-gnu-emacs@m.gmane.org; Sun, 19 Nov 2006 20:34:31 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GlsQw-0006Gm-Fs for geh-help-gnu-emacs@m.gmane.org; Sun, 19 Nov 2006 14:34:30 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GlsQm-0006GV-4X for help-gnu-emacs@gnu.org; Sun, 19 Nov 2006 14:34:20 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GlsQl-0006G9-Lu for help-gnu-emacs@gnu.org; Sun, 19 Nov 2006 14:34:19 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GlsQl-0006G6-Jp for help-gnu-emacs@gnu.org; Sun, 19 Nov 2006 14:34:19 -0500 Original-Received: from [209.226.175.97] (helo=tomts40-srv.bellnexxia.net) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GlsQl-00012x-D1 for help-gnu-emacs@gnu.org; Sun, 19 Nov 2006 14:34:19 -0500 Original-Received: from pastel.home ([70.55.143.67]) by tomts40-srv.bellnexxia.net (InterMail vM.5.01.06.13 201-253-122-130-113-20050324) with ESMTP id <20061119193418.LRMZ3449.tomts40-srv.bellnexxia.net@pastel.home> for ; Sun, 19 Nov 2006 14:34:18 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id 1875A8282; Sun, 19 Nov 2006 14:34:18 -0500 (EST) Original-To: help-gnu-emacs@gnu.org In-Reply-To: (une's message of "Sat\, 18 Nov 2006 01\:42\:09 -0800 \(PST\)") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.90 (gnu/linux) 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:38826 Archived-At: > When writing code in C++ or Java I notice that I can get the code all nicley > aligned and indented correctly by simply adding a comment at the end of each > line of code. As you enter the //, the line of code moves to its correct > alignment. Hitting TAB does that as well, in a less roundabout way. Take a look at indent-region as well. Stefan