[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Formatting Code
From: |
gebser |
Subject: |
Re: Formatting Code |
Date: |
Wed, 29 Jan 2003 19:51:35 -0500 (EST) |
Another track:
Matt at 00:17 (UTC-0000) on Thu, 30 Jan 2003 said:
= Glenn Hancock <ghancock@localhost.localdomain> writes:
=
= > I have been trying to figure out how to get emacs to format my code the
way
= > I want it and now have it so screwed up it doesn't act right at all. How
= > do I reset it back to defaults to start over?
=
= You can set everything back to defaults by wiping out your .emacs
= file. If you were using customize, you can click `Erase Customization'.
You could also rename your .emacs and .emacs~ files so as to get them
back later if needed.
=
= > Is this typical of using Emacs? I want to program not spend all day
= > learning an IDE. Anyone have any tips to get me going quicker?
=
= What type of code are you writing? Are you using a certain major mode?
= If not, you should. Have you tried customizing the settings for that
= particular mode? - i.e., for Perl mode try M-x customize-group RET
= perl RET
It's fairly easy to edit a lot of the formatting done by elisp. I've
done a lot in about a half hour and know very little about elisp. You
can ask anyone here about that. :)
=
= If you want quick, my advice is just get used to it the way it is.
If it's about customizing key combos (aka chords... whatever), I'd
agree. But it's much more important to have your documents formatted
the way you want. That's what an editor's for. It'd be a major pain in
the patoot to have to go back and reformat them later when you finally
figure out how.
Glenn, you should give us more specifics about what kind of file you're
editing (shell or perl script, C code, html, etc.) and what style of
formatting you want. Your question is a little vague. Vague questions
get vague answers (at best).
hth,
ken
=
= > Thanks,
= >
= >
= > Glenn.
= >
= > P.S. I have already read the entire tutorial but it doesn't cover
= > formatting code issues...
= >
=
= There's also a Manual. I'm fairly new to emacs, but the time I've
= invested learning it has been well worth the effort.
=
= Matt
=