unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Textmate like code block alignment (ruby-mode)
@ 2010-07-06 16:51 Marcelo de Moraes Serpa
  2010-07-06 17:01 ` Deniz Dogan
  0 siblings, 1 reply; 4+ messages in thread
From: Marcelo de Moraes Serpa @ 2010-07-06 16:51 UTC (permalink / raw)
  To: help-gnu-emacs

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.



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-07-06 23:27 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-06 16:51 Textmate like code block alignment (ruby-mode) Marcelo de Moraes Serpa
2010-07-06 17:01 ` Deniz Dogan
2010-07-06 17:05   ` Marcelo de Moraes Serpa
2010-07-06 23:27     ` Lennart Borgman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).