Code editing feauture
Michelle Konzack
linux4michelle at freenet.de
Wed Apr 23 17:22:20 UTC 2008
Am 2008-04-21 14:51:03, schrieb kilgota at banach.math.auburn.edu:
> 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)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.pgp
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.midnight-commander.org/pipermail/mc/attachments/20080423/3bb733c7/attachment.pgp>
More information about the mc
mailing list