All Questions
Tagged with slime indentation
5 questions
2
votes
1
answer
137
views
getting macro calls to indent correctly (like defun instead of functions) in common lisp code?
I'm editing a Common lisp (not elisp) source file; bottom right says (Lisp adoc [COMMON-LISP-USER sbcl]). I'm using slime, so I'm pretty sure that's what the adoc means.
I have the following in a ...
0
votes
1
answer
64
views
Why having a system loaded makes any difference for indentation?
I am using Common Lisp, SBCL, Emacs, and Slime. During a code review, a co-worker mentioned that the indentation of an s-expression was wrong.
Usually, I just use indent-sexp(bounded to C-M-q) to fix ...
0
votes
1
answer
151
views
Is there a way to automatically indent a parenthesis in Slime REPL after pressing `C-m o`?
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 ...
1
vote
1
answer
112
views
Unexpected indentation in backquoted list starting with comma function call
When I write a backquotedlist that starts with ,( emacs aligns the remaining items to the parenthesis and not to the comma; e.g.:
(defun kb-test1 ()
`(,(hello)
fdefef
,(fefesd)))
(...
6
votes
2
answers
2k
views
Why does Emacs indent my Lisp LOOP construct weirdly?
I'm using Emacs and SLIME to edit Lisp code.
By default, Emacs indents my Lisp LOOP constructs like this:
(loop for x across dna1
for y across dna2
count (not (eql x y)))
But I expect it to ...