Is there a good Emacs mode or method for lex/flex/yacc/bison files?

Viewed 8446

Editing lex or yacc files with Emacs is a nuisance: if I use C mode the indenting goes wrong, and if I don't use C mode I can't use indenting. Does anyone have a trick, a method, or an editing mode to get around it?

4 Answers

I generally toggle between Makefile mode, text mode, and C mode depending on which line I am on. If you want better, you should write the mode!

Related