Closed NicholasBHubbard closed 2 years ago
Use eval-after-load
happily, but do it for sly-mrepl
, not sly
. Should work. sly-mrepl
is provided after sly
is provided.
Ahh it works now thanks. I apologize because now that I look back at #120 I see you made it clear that you need to eval-after-load sly-mrepl
.
Sly version: 1.0.43
With the following configuration I get the error
Symbol's value as variable is void: sly-mrepl-mode-map
.Similarly if I wrap the keybinding in a
with-eval-after-load 'sly
then I get the same error but not until I start up sly withM-x sly
:Here is the backtrace:
I get an identical error if I try to use
sly-db-mode-map
as well.However, if I leave the
sly-mrepl-mode-map
reference out of my config, then start up sly withM-x sly
and the evaluate thesly-mrepl-mode-map
expression then I get the desired behavior andM-q
is bound in the sly repl.I am not sure how I am supposed to reference
sly-mrepl
orsly-db
from my configuration.A similar issue seems to have been brought up before in issue #120 but the solution provided was to wrap the
sly-mrepl
functionality in awith-eval-after-load 'sly
block but as shown above this did not work for me.