I ran the auto-mode-alist in both windows native emacs version and the X11 version and compared them. There was no difference! Also I use lower case .c in my files. Thanx for the pointer any way "Kai Großjohann" wrote in message news:8465ud3fw4.fsf@lucy.cs.uni-dortmund.de... > "c. kumar" writes: > > > 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. > > Maybe there is a case-sensitivity problem with Emacs/Cygwin? > > Maybe auto-mode-alist contains entries for *.c files but your file is > named *.C... > > -- > ~/.signature is: umop ap!sdn (Frank Nobis)