-BEGIN PGP SIGNED MESSAGE-
Hash: SHA512
On Fri, Nov 28, 2008 at 11:19 AM, Jean-Philippe Bernardy wrote:
> This should work, I'd say you were not running the code that corresponds to
> the source somehow (this can be easy to miss since yi recompiles itself and
> launches that copy of the
On Fri, Nov 28, 2008 at 4:36 PM, Gwern Branwen <[EMAIL PROTECTED]> wrote:
>
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA512
>
> On Fri, Nov 28, 2008 at 1:17 AM, Jeff Wheeler wrote:
>> On Nov 28, 2008, at 12:03 AM, Gwern Branwen wrote:
>>
>>> This leaves me another question. So far I can't fig
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA512
On Fri, Nov 28, 2008 at 1:17 AM, Jeff Wheeler wrote:
> 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
On Nov 28, 2008, at 12:17 AM, Jeff Wheeler wrote:
> M-x setAnyMode iReaderMode, and don't associate it with any file
> types. This is defined in Yi.Misc.
By the way, I don't know of any way to do this from the Vim
keybindings which I prefer. :yi setAnyMode works, but I cannot seem to
get Yi
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 int
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
On Thu, Nov 27, 2008 at 10:53 PM, nicolas. pouillard
<[EMAIL PROTECTED]> wrote:
>
> Excerpts from Gwern Branwen's message of Thu Nov 27 22:50:31 +0100 2008:
>> > On Thu, Nov 27, 2008 at 3:22 AM, Gwern Branwen <[EMAIL PROTECTED]> wrote:
>> >> On Wed, Nov 26, 2008 at 5:03 PM, Gwern Branwen wrote:
>
Excerpts from Gwern Branwen's message of Thu Nov 27 22:50:31 +0100 2008:
> > On Thu, Nov 27, 2008 at 3:22 AM, Gwern Branwen <[EMAIL PROTECTED]> wrote:
> >> On Wed, Nov 26, 2008 at 5:03 PM, Gwern Branwen wrote:
> >>> setBufferContents doesn't seem to exist. At least, recursive grep
> >>> can't fin
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA512
On Thu, Nov 27, 2008 at 2:24 AM, Jean-Philippe Bernardy wrote:
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (GNU/Linux)
iEYEAREKAAYFAkkvFh8ACgkQvpDo5Pfl1oKuZQCfamk8/ptaKf2enU1+aehIXfRs
Wa8An16DCrU2NlHY6Ot2hbLxda2nr+Iw
=2n8V
-END PGP SIG
On Thu, Nov 27, 2008 at 3:22 AM, Gwern Branwen <[EMAIL PROTECTED]> wrote:
>
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA512
>
> On Wed, Nov 26, 2008 at 5:03 PM, Gwern Branwen wrote:
>> setBufferContents doesn't seem to exist. At least, recursive grep
>> can't find anything but setBuffer.
>
>
On Wed, Nov 26, 2008 at 11:03 PM, Gwern Branwen <[EMAIL PROTECTED]> wrote:
>
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA512
>
> On Wed, Nov 26, 2008 at 4:18 PM, Jean-Philippe Bernardy wrote:
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1.4.9 (GNU/Linux)
>
> iEYEAREKAAYFAkktx7oACgkQvpDo5
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA512
On Wed, Nov 26, 2008 at 5:03 PM, Gwern Branwen wrote:
> setBufferContents doesn't seem to exist. At least, recursive grep
> can't find anything but setBuffer.
OK, so I found two ways to do this:
> setBufferContents :: (MonadEditor m) => String ->
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA512
On Wed, Nov 26, 2008 at 4:18 PM, Jean-Philippe Bernardy wrote:
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (GNU/Linux)
iEYEAREKAAYFAkktx7oACgkQvpDo5Pfl1oJehACcC5Xv/voypK9dyE2oq1ovRCQr
260AnA/qHX2hv/IDahTo2gD24oSt+kpD
=m7/c
-END PGP SIG
It seems you're on the right track concerning keybindings and such.
Random tips:
* You can rebind a key globally though the defaultKeymap field
* Use 'io' to lift IO to YiM;
* functions to manipulate buffers are in
Editor.hs (mostly).
* You can use setBufferContents to overwrite the contents
of t
14 matches
Mail list logo