From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Marcelo de Moraes Serpa Newsgroups: gmane.emacs.help Subject: Textmate like code block alignment (ruby-mode) Date: Tue, 6 Jul 2010 11:51:14 -0500 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: dough.gmane.org 1278435344 30613 80.91.229.12 (6 Jul 2010 16:55:44 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 6 Jul 2010 16:55:44 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jul 06 18:55:43 2010 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OWBQt-0005H2-0N for geh-help-gnu-emacs@m.gmane.org; Tue, 06 Jul 2010 18:55:43 +0200 Original-Received: from localhost ([127.0.0.1]:53031 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OWBQs-00027j-Ex for geh-help-gnu-emacs@m.gmane.org; Tue, 06 Jul 2010 12:55:42 -0400 Original-Received: from [140.186.70.92] (port=34900 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OWBMb-0000Iy-CX for help-gnu-emacs@gnu.org; Tue, 06 Jul 2010 12:51:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OWBMa-0004h4-20 for help-gnu-emacs@gnu.org; Tue, 06 Jul 2010 12:51:17 -0400 Original-Received: from mail-pv0-f169.google.com ([74.125.83.169]:64288) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OWBMZ-0004gz-R9 for help-gnu-emacs@gnu.org; Tue, 06 Jul 2010 12:51:16 -0400 Original-Received: by pvc30 with SMTP id 30so808556pvc.0 for ; Tue, 06 Jul 2010 09:51:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=CGx9I+12pHqtUpdmcu8BfMq8+fCGFBEkjsDLu4aEgzQ=; b=Kyx5A8yt9z7ba2WadJiQUHSAnJDIe1akkaWuyMFYeHD5KJychA+2m1Q7z3TjJ9X2oA pmzqX0r/mTl46hvS7XOGcLuIGq9RhIWXZ9Mw1eGFss4usuZR6s4yA2OBz98HMQbLHlbO mvM8lUMXQzo8daKNSGv438r8224jTYCEh69p8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=iqaDPnk2rocwFsfgplExCGwj5x0u9r78TRlq3ZorDUhZlvk8qHLmzKhOJO6TRTLGQe FVHfwdTuZAZytdVADfpq08Z3amJYPX0luw3Jp6Oq9MN+ckRIx9+dCVQ3vaPCLqPnMAdj Whp6DzBjfjV5bNiSTgyZ0HhaxKBHIvmLMz2jw= Original-Received: by 10.142.134.13 with SMTP id h13mr6066736wfd.168.1278435074207; Tue, 06 Jul 2010 09:51:14 -0700 (PDT) Original-Received: by 10.143.156.2 with HTTP; Tue, 6 Jul 2010 09:51:14 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) 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:74105 Archived-At: Hey list, I have ruby-mode setup and it works pretty well. One thing though is that it doesn't automatically align blocks, and I have to type C-a TAB to make it align the end with a def for example: def func | I'd like it to behave like Textmate, where when you press enter after the beginning of a code block, it automatically aligns the end to like so: def func | It's really annoying having to align manually. Any ideas? Thanks in advance, Marcelo.