Xref: news2.mv.net comp.lang.ada:17924 comp.os.msdos.djgpp:1833 From: Mike Young Newsgroups: comp.os.msdos.djgpp,comp.lang.ada Subject: Re: Colors in c/c++/Ada mode emacs Date: Mon, 11 Mar 1996 01:39:29 -0600 Organization: Fen Software, Inc. Lines: 25 Message-ID: <3143D8B1.76E6@mcs.com> References: NNTP-Posting-Host: mikey.pr.mcs.net Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: "Michael E. Wesolowski" DJ-Gateway: from newsgroup comp.os.msdos.djgpp Michael E. Wesolowski wrote: > > I believe I've seen it mentioned here that the emacs language modes can > provide some colors to highlight various structures. Am I misremembering > this? I have the DOS version of emacs 19.30 and no colors appear - is > there something I have to do to turn this on, or is it supposed to appear > on its own (implying that my distribution is deficient)? I quick scan > (too quick?) of the FAQ didn't seem to contain any pointers. > > Thanks. > ====== You might try the emacs news group for more help. Ada-mode works for my NTEmacs 19.30, although it has the endearing habit of crashing in Win95 at periodic intervals. Try M-x font-lock-mode to turn on syntax highlighting, and M-x auto-fill-mode to enable word wrapping for comments. The following lines in my .emacs file does this for all Ada files: (add-hook 'ada-mode-hook '(lambda () (font-lock-mode 1))) (add-hook 'ada-mode-hook '(lambda () (auto-fill-mode 1))) Mike.