(defun my-lisp-mode-hook () (require 'ilisp)) Re: test and newbie question

David Shochat <[email protected]> Mon, 03 Jun 2002 18:11:09 -0400
Newsgroups gmane.lisp.ilisp.general
Message-ID <[email protected]>
Hannu Koivisto writes:

> 
> It sounds like you didn't install ILISP as instructed in INSTALLATION.
> Especially pay attention to the part where ilisp.emacs is mentioned.  Then
> again, ilisp.emacs sucks like nothing I've ever seen (it does "work" as far
> as ILISP installation is concerned, but it is horrible code and may fuck up
> your configuration otherwise), so I might as well point out that the relevant
> part concerning the menu problem is that you put (require 'ilisp) to the
> lisp-mode-hook (you could also put it to the top level of your .emacs but
> then ILISP would be loaded always, even when you don't edit Lisp).  You
> should do that like this...
> 
> (defun my-lisp-mode-hook ()
>   (require 'ilisp))
> 
> (add-hook 'lisp-mode-hook 'my-lisp-mode-hook)
>
>
Thanks for your reply (which I just found in the archives -- it seems to 
be taking forever for list messages to get delivered via E-mail).
I tried doing it exactly as in your example. I also upgraded to version 
5.12.0 (they seem to have changed the setq to the add-hook in 
ilisp.emacs, but with a lambda expression rather than a named function 
as you suggest). However, the symptoms remain as I originally described.
I do notice the following in *Messages* after visiting a Lisp file:
Loading ilisp-luc...done
Loading ilisp-sch...done
Loading ilisp-openmcl...done
Loading ilisp-ccl...done
Running ilisp-load-hook
Loading menu interface.
'ilisp-*enable-cl-easy-meny-p*' is t
Loading ilisp-cl-easy-menu...done
Loading ild...done
Loading ilisp-imenu...done

and yet there is still no Ilisp menu in the menu bar. The only way I can 
get that is to do an explicit M-x run-ilisp. btw, is there a way to tell 
it in advance that my dialect is common-lisp and not have it prompt 
every time?
Thanks again.
-- David

>


_______________________________________________________________

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm