choosing a parser by emacs mode specification at the first line

If a parser for a given file cannot be determined by file extension,
a editor mode line can be used as a good hint for the choice.

This patch tries to choose a parser from emacs mode specification at 
the first line of file.