Added an option for syntax extensions in the emacs mode

closes #41 ; thanks hhugo for the report and preliminary patch