Hot answers tagged

2

C-j runs slime-repl-newline-and-indent which I think will work. Whenever I'm faced with an unfamiliar mode, I do C-h m which shows me mode information, including the keymaps: I can then zero in on the relevant function(s). That's how I found this. The doc string of slime-repl-newline-and-indent says: Insert a newline, then indent the next line. Restrict the ...


2

The slime REPL buffer is is REPL mode. You can get information about the mode with C-h m. That is useful in that it shows you the keymap for the mode, and among other things, you will see that C-c C-p is bound to slime-repl-previous-prompt. Here is an excerpt from the description: REPL mode defined in ‘slime-repl.el’: Major mode for interacting with a ...


2

backward-sexp, bound to C-M-b by default`, would do it. Of course, if you’re nested inside several s–expressions then you would need to press it multiple times. So perhaps you want beginning-of-defun, bound to C-M-a, instead.


2

Slime isn't part of the base Emacs install. You need to add it to your config. Usually this is done via package-install-packages, but you may have downloaded the code yourself. Regardless of how you installed slime, using it requires you load the appropriate configuration code. When you start emacs with emacs -Q, you are explicitly telling Emacs to ignore ...


2

You want slime-switch-to-output-buffer, bound to C-c C-z by default. The SLIME User Manual has the documentation for this and many other interesting commands. You can read it inside of Emacs (use C-h i to open the Info viewer, you’ll find the manuals there), or online. See specifically chapter 8.2 REPL: the “top level”.


1

There are lots of things to unpack here. Let me reframe what you're actually asking. I have been using company for tab completion. You have been using company for completion. Company-mode is a minor mode. It can be enabled locally or globally. You don't press any key for the completion to start. You simply wait company-idle-delay seconds, and it starts ...


1

You were close to figure it out, but you needed to dig a little bit deeper. These commands are completely different beasts. I'll explain with an example, using slime-repl-previous-input (bound to M-p) and slime-repl-backward-input (bound to C-up), without loss of generality. Start the REPL and evaluate the following s-exps: (* 2 2) and (+ 2 2). At the next ...


1

Since no one answered, I've done a naive implementation. This is a community wiki answer in hope, the implementation evolves over time. (defun my-sly-copy-call-to-repl () "Copy name/symbol of toplevel sexp to sly-mREPL and select sly-mREPL." (interactive) (let (string replwin) (save-excursion (beginning-of-defun) (...


1

Both SLIME and SLY are user interfaces for interacting with a running Lisp process. SLY is much newer than SLIME, and so it copies some conventions and key bindings from SLIME. You can’t usefully use both at the same time, so the author of SLY made it check to see if you have SLIME configured as well. This is annoying you, but it would certainly annoy you ...


1

I did not mention it in my post, but after installing Paredit I also installed Sly, a fork from the Slime project. This was the root of the problem. I learned how to uninstall packages with this post. In addition, @nega connected the dots between this problem and this other post. After removing Sly, Slime is perfectly functioning! And the keybindings such as ...


Only top voted, non community-wiki answers of a minimum length are eligible