This behavior happens only when I fire up emacs under /cygwin/X11. I have also native binaries of emacs installed. If I fire that up it automatically recognizes the c-code and sets the mode appropriately. "c. kumar" wrote in message news:WSaG9.197045$1O2.12371@sccrnsc04... > It looks okay to me (see the attached list). > > "Kai Großjohann" wrote in message > news:841y5291ar.fsf@lucy.cs.uni-dortmund.de... > > "c. kumar" writes: > > > > > When I open up my c-code in emacs it used to automaticlaly open it in > > > c-mode. Under the latest cygwin/X11 for some reason it opens it > fundamental > > > mode and I have been manually setting it c-mode. > > > > The varibale auto-mode-alist contains regexp/mode pairs. Emacs looks > > there to decide which mode to use. > > > > What does C-h v auto-mode-alist RET say on your system? > > > > -- > > ~/.signature is: umop ap!sdn (Frank Nobis) > > >