all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* StumpWM with SLIME
@ 2017-01-15  0:57 Ricardo Wurmus
  0 siblings, 0 replies; 2+ messages in thread
From: Ricardo Wurmus @ 2017-01-15  0:57 UTC (permalink / raw)
  To: help-guix

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

GPG: BCA6 89B6 3655 3801 C3C6  2150 197A 5888 235F ACAC
http://elephly.net

^ permalink raw reply	[flat|nested] 2+ messages in thread

* StumpWM with SLIME
@ 2017-10-17 22:53 Diego Nicola Barbato
  0 siblings, 0 replies; 2+ messages in thread
From: Diego Nicola Barbato @ 2017-10-17 22:53 UTC (permalink / raw)
  To: rekado; +Cc: help-guix

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-10-17 22:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-01-15  0:57 StumpWM with SLIME Ricardo Wurmus
  -- strict thread matches above, loose matches on Subject: below --
2017-10-17 22:53 Diego Nicola Barbato

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.