help-guix
[Top][All Lists]
Advanced

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

StumpWM with SLIME


From: Diego Nicola Barbato
Subject: StumpWM with SLIME
Date: Wed, 18 Oct 2017 00:53:20 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux)

Hello Ricardo,

> Hi Guix,

> I’m trying out StumpWM and I’d like to be able to interact with it via
> Emacs using SLIME.

> Here’s what I installed:

>   guix package -i emacs-slime sbcl-stumpwm:bin

> My ~/.stumpwmrc looks like this:

> --8<---------------cut here---------------start------------->8---
> (in-package :stumpwm)
> ;; Find fonts in my Guix profile
> (run-shell-command "xset +fp ~/.guix-profile/share/fonts/X11/100dpi/")
> ;; Change window font to something readable
> (set-font "-adobe-courier-medium-r-normal--14-100-100-100-m-90-iso8859-1")

> ;; TODO: this works in the sbcl REPL, but fails when starting stumpwm
> (require "asdf")
> (load 
> "/home/rekado/.guix-profile/share/emacs/site-lisp/guix.d/slime-2.18/swank.asd")
> (require :swank)
> --8<---------------cut here---------------end--------------->8---

> The last three lines are supposed to load swank, which is part of
> SLIME.  When running these lines in a separate sbcl REPL everything
> seems to be okay.  But as part of my ~/.stumpwmrc this isn’t working.

> I get an error:

>     Don’t know how to REQUIRE SB-INTROSPECT

> When I try this again in StumpWM using “C-t : (require :swank)” I get a
> different error:

>     ASDF could not load swank because
>     The variable SWANK::*AFTER-INIT-HOOK* is unbound..

> Does this work for anyone?

> -- 
> Ricardo

I have recently encountered the same problem. According to
http://slime-devel.common-lisp.narkive.com/VMYanrEl this error happens
when the environment variable SBCL_HOME is not set (This can be checked
with "C-t : (sb-ext:posix-getenv "SBCL_HOME")", which will return nil if
SBCL_HOME is not set).
When running "(sb-ext:posix-getenv "SBCL_HOME")" in a separate sbcl REPL
however it returns "/gnu/store/...-sbcl-1.3.7/lib/sbcl", which explains
why the error only appears in stumpwm.
To work around this problem I added
"(sb-posix:putenv "SBCL_HOME=/home/diego/.guix-profile/lib/sbcl")" to my
.stumpwmrc.

HTH!
Diego



reply via email to

[Prev in Thread] Current Thread [Next in Thread]