Am 2008-04-21 14:51:03, schrieb [EMAIL PROTECTED]:
> This is very interesting. I would like to be able to do this kind of 
> indentation with .c and .h files in particular, for obvious reasons. 
> However, when I try to follow the advice given below here is what I find 
> in the indicated file, $HOME/.mc/cedit/edit.indent.rc
> 
> case `echo $1 |sed 's/^.*\.//'` in
>      c|h)
>      # ftp://ftp.gnu.org/pub/gnu/indent/
>      # Please add options to your ~/.indent.pro, not here.
>          indent "$2"
> 
> (and the "case" continues to other things...)

The `echo $1 |sed 's/^.*\.//'` is striping the prefix/name from the
filename.  E.g.

    echo main.c |sed 's/^.*\.//'

will result in

    c

> I cannot find any such file called .indent.pro

Do you have "indent" installed?
The file ~/.indent.pro is a part of this program and must
be created by hand by reading the manpage to indent.

Thanks, Greetings and nice Day
    Michelle Konzack
    Systemadministrator
    24V Electronic Engineer
    Tamay Dogan Network
    Debian GNU/Linux Consultant


-- 
Linux-User #280138 with the Linux Counter, http://counter.li.org/
##################### Debian GNU/Linux Consultant #####################
Michelle Konzack   Apt. 917                  ICQ #328449886
+49/177/9351947    50, rue de Soultz         MSN LinuxMichi
+33/6/61925193     67100 Strasbourg/France   IRC #Debian (irc.icq.com)

Attachment: signature.pgp
Description: Digital signature

_______________________________________________
Mc mailing list
http://mail.gnome.org/mailman/listinfo/mc

Reply via email to