I am using Slime, Paredit, and SBCL to code in Common Lisp. While editing a .lisp
file, suppose I have this code:
(dotimes (i 4))
I will represent the cursor (point) as -!-. Having the cursor in this position and pressing return
key I get:
(dotimes (i 4) -!-)
;;; press `return`
(dotime (i 4)
-!-)
I would like to have the same in the SLIME Repl. There, if I have:
CL-USER> (dotimes (i 4)-!-)
;; after pressing `return` the expression is evalued
NIL
I can use C-o
. However, C-o
gives a new line but with no indentation, such as:
CL-USER> CL-USER> (dotimes (i 4)-!-)
;; after pressing `C-o`, I have:
CL-USER> CL-USER> (dotimes (i 4)
-!-)
Is there a way to get a new line but with a properly indented parenthesis? Another command maybe? Should I insert something on my init files?
Thanks