OK, so I've finished up my mode. It seems to work well, although obviously still very alpha and fragile (and there's a strange consequence of my error-catching which creates an empty article). Whew.
This leaves me another question. So far I can't figure out how to simply invoke a mode on a buffer. I mean, in Emacs one might create a new buffer, and then do M-x ireader-mode, or whatever. But in Yi, the only mechanism I see to get into my incremental reader mode is to add a config line like: > modeTable = AnyMode bestHaskellMode : AnyMode IReader.ireaderMode : > modeTable defaultConfig, But the problem with that is that each mode registers file suffixes they should be used for (I chose 'irtxt', seemed reasonable & unlikely to be used), and so one has to open up a file of that name. You can't do M-x ireaderMode. I am unsure why. A second thing I noticed was that there is no way to make a new buffer which is not associated with a file? C-x b foo gives a nasty error, instead of making a new buffer named foo. -- gwern --~--~---------~--~----~------------~-------~--~----~ Yi development mailing list yi-devel@googlegroups.com http://groups.google.com/group/yi-devel -~----------~----~----~----~------~----~------~--~---