On Fri, 7 May 1999, Charlie Benton wrote: > I'm using emacs to edit some c files. It goes into C mode. Then it > likes to automatically indent things for me. This is alright I guess > but it wants to indent by two spaces. I want it to indent by four > spaces. I'm not sure whether you have the same info files as I do, but this works for me (with the emacs set up on Red Hat 5.2). C-h i C-s cc mode C-b <ENTER> Select "Concept Index" C-s indentation (my first match is "Customizing Indentation") <ENTER> <ENTER> That page tells you everything you need to know. > Also I want it to color code my source > files but have different color coding for Perl, C, Lisp etc. I know it > can do this, how does this work. >From the (dir) level of the info system, go to Emacs->concept index->Font Lock Mode. > One more thing, I know that emacs > can act like an IDE, compile your code "run make", and then you can > just click on the errors that result and make the changes, again how > do you set all this stuff up. >From your source editing window, type M-x compile. You can then invoke make or the compiler. This automatically opens a *compilation* window where errors will be displayed as you state. > I've looked for information on the > internet but I'm having a hard time finding the proper resources and > in program manual isn't exactly totally helpfull either, but then > again maybe I'm using it wrong. You should learn to use the Info files. It's not unlike browsing HTML, and that's where the best Emacs info can usually be found. ------------------------------------------- Tom Bryan Applied Research Laboratories University of Texas at Austin --------------------------------------------------------------------------- Send administrative requests to [EMAIL PROTECTED]
