unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* beautifying the current line
@ 2008-04-23 21:26 TheLonelyStar
  0 siblings, 0 replies; 2+ messages in thread
From: TheLonelyStar @ 2008-04-23 21:26 UTC (permalink / raw)
  To: Help-gnu-emacs


Hi,

When I press tab in emacs (while editing an c++ file), it indents the
current line. Very good!
I was wondering if maybe emacs could do even more. Look at this example:
What if pressing tab on something like this:

LongTypeName a;
int b; //<-press tab on this line

Would result in:

LongTypeName a;
int                 b;

Like running astyle. But only the current line is changed.
I do not want to change the whole buffer, just the current line.
I also do not want to select a region for this. Just press tab, like I do
when I want indention.

Is this possible?
Thanks!
Nathan
-- 
View this message in context: http://www.nabble.com/beautifying-the-current-line-tp16834831p16834831.html
Sent from the Emacs - Help mailing list archive at Nabble.com.





^ permalink raw reply	[flat|nested] 2+ messages in thread
[parent not found: <mailman.10758.1208989619.18990.help-gnu-emacs@gnu.org>]

end of thread, other threads:[~2008-04-24 10:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-23 21:26 beautifying the current line TheLonelyStar
     [not found] <mailman.10758.1208989619.18990.help-gnu-emacs@gnu.org>
2008-04-24 10:10 ` harven

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).