all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Marcelo de Moraes Serpa <celoserpa@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Textmate like code block alignment (ruby-mode)
Date: Tue, 6 Jul 2010 11:51:14 -0500	[thread overview]
Message-ID: <AANLkTilzz7Z8qPah79ewfzDmA-fAOQ5sPqzP_ablBUQh@mail.gmail.com> (raw)

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 <when I press ENTER here>
      |<the pointer goes here>

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 <when I press ENTER here>
|<the cursor goes here, where it should be>

It's really annoying having to align manually.

Any ideas?

Thanks in advance,

Marcelo.



             reply	other threads:[~2010-07-06 16:51 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-06 16:51 Marcelo de Moraes Serpa [this message]
2010-07-06 17:01 ` Textmate like code block alignment (ruby-mode) Deniz Dogan
2010-07-06 17:05   ` Marcelo de Moraes Serpa
2010-07-06 23:27     ` Lennart Borgman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=AANLkTilzz7Z8qPah79ewfzDmA-fAOQ5sPqzP_ablBUQh@mail.gmail.com \
    --to=celoserpa@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.