Every time I open my file, I have to M-x ruby-mode
to get emacs to do the syntax highlighting I want. The file is a .erb so it doesn't recognize the ruby right away.
Is there a Unix command to start emacs in ruby mode when I'm opening a file? I know about the -f option but it doesn't seem to work when I'm opening a file. If I type emacs -f ruby-mode myFile
it doesn't work.