jed-users mailing list

[2002 Date Index] [2002 Thread Index] [Other years]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]

Re: Reindent an entire C code in one shot


Morten Bo Johansen <mojo@xxxxxxxx> writes:

> Mauro Ziliani <mauzil@xxxxxxxxx> wrote:
>
>
> MZ> I need often to reindent a entire C code with my jed fashion.
> MZ> How can I do this inside JED?
>
>    M-x indent_buffer 
>
> if I understand you correctly.

This brings up a related question: is there an easy way in jed to
re-indent everything within a brace-delimited block, and nothing else?

For example:

  Before:

    if (foo) {
    bar;
                             baz;
       quack;
                      }

  After:

    if (foo) {
      bar;
      baz;
      quack;
    }


> Regards,
>
> Morten


-- 
 Lloyd Zusman
 ljz@xxxxxxxxxx

--------------------------
To unsubscribe send email to <jed-users-request@xxxxxxxxxxx> with
the word "unsubscribe" in the message body.
Need help? Email <jed-users-owner@xxxxxxxxxxx>.


[2002 date index] [2002 thread index]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]