[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Setting *package* from a file



>From: friedman@giane.cs.umass.edu (M. Timur Friedman)
>Newsgroups: comp.lang.lisp.mcl
>Subject: Setting *package* from a file
>
>How do you set the *package* global variable from a file?
>
>I am developing a package which I load in from a file.  I would
>like the *package* global variable to be set to that package as
>soon as the file is loaded.  Right now what I do is type
>(in-package "my-package") to the Listener after loading the file.


Try something like this in your file...

(in-package :cl-user)    ;; or whatever package you want...

(defpackage binky (:use common-lisp))

(eval-enqueue '(in-package :binky))