[Openmcl-devel] listener ? prompt - retrieve previously eval'd expressions?

◒ Simon Lucas ◒ simon at spiral.co.uk
Mon Jul 4 01:31:15 PDT 2016


I'm putting this in the ccl-ide-init.lisp file. I know the Listener is reading it because if I remove the 'in-package...' it produces an error at start-up.

But the key-binding does  not seem to work.

btw. I'm using OSX 10.6.8

;;; -*- Mode: Lisp; Package: Hemlock -*-

;;; It is necessary to specify that the customizations go in
;;; the hemlock package.
(in-package 'hemlock)

(bind-key "Previous Interactive Input" #k"meta-uparrow" :mode "Listener")
(bind-key "Next Interactive Input" #k"meta-downarrow" :mode "Listener”)


On 3 Jul 2016, at 21:03, Ron Garret wrote:

> You want ~/ccl-ide-init.lisp, not hemlock-init.
> 
> Also, if you have (in-package :hemlock) then you can just say bind-key instead of hemlock::bind-key.
> 
> On Jul 3, 2016, at 10:54 AM, ◒ Simon Lucas ◒ <simon at spiral.co.uk> wrote:
> 
>> Glad to see so many people are active in the CCL list. I hope this is the correct way to respond...
>> 
>> @Ron
>> 
>> Thank-you!
>> 
>> If I want to add these key bindings to the ~/hemlock-init.lisp file, how does it work? 
>> 
>> This did not work. (I also tried without the 'hemlock::' string)
>> 
>> ;;; -*- Mode: Lisp; Package: Hemlock -*-
>> 
>> ;;; It is necessary to specify that the customizations go in
>> ;;; the hemlock package.
>> (in-package 'hemlock)
>> 
>> (hemlock::bind-key "Previous Interactive Input" #k"meta-uparrow" :mode "Listener")
>> (hemlock::bind-key "Next Interactive Input" #k"meta-downarrow" :mode "Listener”)
>> 
>> @R. Matthew
>> 
>> Thanks - that works
>> 
>> @Pascal
>> 
>> The '+' etc, does not work on my install.
>> 
>> I think the sexp environment will have to be on my todo list. thanks for the tip.
>> 
>> 
>> Simon
>> _______________________________________________
>> Openmcl-devel mailing list
>> Openmcl-devel at clozure.com
>> https://lists.clozure.com/mailman/listinfo/openmcl-devel
> 




More information about the Openmcl-devel mailing list