Why is my text all black and not auto indenting in emacs

In one of my files, everything was working fine. Things were being color-coded and auto-intending perfectly for me. When I started a new file to work on some other code, I noticed that the text was black and nothing was being indented for me. I tried asking google a whole bunch of questions like, "how to turn on auto-indent for emacs" and "how to change the theme color." I tried following suggestions online, but none seem to work. Is there a way I could reset my settings to default?


Solution 1:

When creating a name for the file I forgot to put .cpp at the end. Sorry for the waste of time and Thank you to everyone who tried to help me.