On 06/07/12 12:11, Duncan Bayne wrote:
> Hi All,
> 
> I'm trying to get SWANK to run when StumpWM starts.  But the following
> code in my .stumpwmrc:
> 
> (let ((home (sb-unix::posix-getenv "HOME")))
>   (load (concatenate 'string home "/.emacs.d/slime/swank-loader.lisp"))
>   (swank-loader:init)
>   ;; ...
> 
> ... doesn't work.  SBCL errors out with 'package "swank-loader" not
> found'.  However, when I run the above code from a SBCL REPL, it works
> just fine.
> 
> I'm running SBCL 1.0.54 compiled from source with threading, and
> StumpWM 1:20110819.gitca08e08-2 (i.e., the version that comes with
> Linux Mint 13).
> 
> Does anyone have any suggestions as to what I might be doing wrong?

You just have to make sure that the swank-loader package is created
early enough. Does the following version work?

(eval-when (:compile-toplevel :load-toplevel :execute)
  (let ((home (sb-unix::posix-getenv "HOME")))
    (load (concatenate 'string home "/.emacs.d/slime/swank-loader.lisp"))))

(swank-loader:init)

--
Dirk

_______________________________________________
Stumpwm-devel mailing list
Stumpwm-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/stumpwm-devel

Reply via email to