On Nov 28, 2008, at 12:03 AM, Gwern Branwen wrote:

> 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.

M-x setAnyMode iReaderMode, and don't associate it with any file  
types. This is defined in Yi.Misc.

Hope that helps. :)

Jeff Wheeler

--~--~---------~--~----~------------~-------~--~----~
Yi development mailing list
yi-devel@googlegroups.com
http://groups.google.com/group/yi-devel
-~----------~----~----~----~------~----~------~--~---

Reply via email to