chiark / gitweb /
dot/lisp-init.lisp: Work in the `mdw-hacks' package rather than `cl-user'.
authorMark Wooding <mdw@distorted.org.uk>
Sat, 27 Jun 2020 17:13:42 +0000 (18:13 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Sat, 27 Jun 2020 17:13:42 +0000 (18:13 +0100)
dot/lisp-init.lisp

index 7f6e31600992e00f0bf924affb37a6348a56fee0..b374e54a4807319e54728b02e7b0be75b93f34d0 100644 (file)
@@ -1,7 +1,8 @@
-(defpackage #:mdw-hacks
+(cl:defpackage #:mdw-hacks
   (:use #:cl)
   (:export #:crank-swank))
-(use-package '#:mdw-hacks)
+(cl:defparameter mdw-hacks::*previous-package* cl:*package*)
+(cl:in-package #:mdw-hacks)
 
 ;; Obtain ASDF from somewhere.
 #+sbcl (require :asdf)
@@ -61,3 +62,4 @@ (defun mdw-hacks:crank-swank (&rest #1=#:args)
 ;; Done.
 (pushnew :mdw *features*)
 ;;#+(and cmu mp) (mp::startup-idle-and-top-level-loops)
+(setf *package* *previous-package*)