unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
* Anniversary hack: Zile editor with Guile support
@ 2012-02-13  0:51 Mike Gran
  2012-02-13 14:25 ` Bernardo Ezequiel Contreras
  2012-02-13 14:27 ` Ludovic Courtès
  0 siblings, 2 replies; 18+ messages in thread
From: Mike Gran @ 2012-02-13  0:51 UTC (permalink / raw)
  To: Guile User



Hello-

In response to Ludo's request for a Guile-2.0 anniversary hack, I'll
start by offering a release of a hack I made.  But this isn't my
official hack: it is just a building block.

Zile-on-Guile is a version of GNU Zile that uses GNU Guile as an
extension language.  The original GNU Zile was a small editor in the
style of GNU Emacs and it has its own tiny embedded Lisp interpreter.
I've replaced that interpreter with Guile.

You can find the download at

https://github.com/downloads/spk121/zile/zile-on-guile-0.0.tar.gz

This is a 0.0 release, so if it even builds on anyone else's machine,
I'd be totally surprised.

You can find the Git repository at 

https://github.com/spk121/zile

The Guile extension can be accessed this way.

-- Pressing Alt+C brings up a REPL.  You can do all your standard REPL
   things.

-- In the REPL, one can create and bind new commands.  Define a
   procedure of zero arguments, export it, and then bind it to a key
   using 'set-key'.

   For example:

     (define (blammo)
       (insert "blammo"))
     (export blammo)
     (set-key "\\F9" 'blammo)

   This creates a function that inserts the world "blammo" at the mark
   whenever <F9> is pressed.

-- And, if really you wanted to, you could edit your current buffer in
   the REPL

   For example:

      (insert "here is some text")
      (forward-char)

   But that would just be silly.

Thanks,

Mike Gran      



^ permalink raw reply	[flat|nested] 18+ messages in thread
[parent not found: <CAOnWdoggx6YWV_VUuYcdosvsXFwYXzua57NaUTa7ZT3RiUtvOA@mail.gmail.com>]

end of thread, other threads:[~2013-03-25  7:06 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-13  0:51 Anniversary hack: Zile editor with Guile support Mike Gran
2012-02-13 14:25 ` Bernardo Ezequiel Contreras
2012-02-13 15:37   ` Mike Gran
2012-02-13 22:40     ` Ludovic Courtès
2012-02-13 14:27 ` Ludovic Courtès
2012-02-14  5:46   ` Mike Gran
     [not found] <CAOnWdoggx6YWV_VUuYcdosvsXFwYXzua57NaUTa7ZT3RiUtvOA@mail.gmail.com>
     [not found] ` <4CB5C160-9728-4784-ABA1-E8BDFC825990@vaughan.pe>
2013-03-22  1:13   ` Gary V. Vaughan
2013-03-22  2:43     ` Mike Gran
2013-03-22  3:10       ` Gary V. Vaughan
2013-03-25  2:13         ` Ian Price
2013-03-25  2:21           ` Gary V. Vaughan
2013-03-25  4:10             ` Ian Price
2013-03-25  4:22               ` Gary V. Vaughan
2013-03-25  6:24                 ` Ian Price
2013-03-25  7:06                   ` Gary V. Vaughan
2013-03-25  2:52           ` Nala Ginrut
2013-03-22 11:05     ` Ludovic Courtès
2013-03-23  1:32       ` Nala Ginrut

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).