Some of my config file have this (using conf-unix-mode)

# this is .somerc # -*- conf-unix -*- ...

Or using this in your .emacs