Emacs slime: What is equivalent to an up arrow in shells?

When I enter something wrong in dos / linux and it yells at me, I can press the up arrow and then change my line - maybe it didn’t indicate “-” or something like that. I just installed lispbox, and the up arrow moves the cursor up through the history of REPL. How do I insert the current line in the last line I entered.

Since I am typing

+ 3 2 

But I meant

 (+ 3 2) 

How can I make him say "+ 3 2", so I can just click on "Home", "(", "End", ")"?

Or is there some BIG Mx waaahFIXIT command for this?

+6
source share
1 answer

Try

 (slime-repl-previous-input) 

associated with

 Mp 

default. (Meta is usually the Alt key)

Mp / Mn is the standard for moving back / forth in history in emacs - it also works in the minibuffer.

+10
source

Source: https://habr.com/ru/post/899935/


All Articles