Closed commander-trashdin closed 4 years ago
Also this:
(defmethod check-collisions ()
(run-system (((pos 'c-position)
(col 'c-collision)))
(let ((shapes (c-collision-collision-shapes col)))
(dolist (s shapes)
(cond ((typep s 'circle) (bla))
((typep s 'box) (blub)))))))
The let
form could be indented less, but especially the cond
cases should be aligned properly.
Okay, now looking into it, I found a solution to the problem I'm facing.
I removed cond
from the indentation forms
in paredit's settings. Also I added dolist
there. My code looks much better now. Maybe you should have a look at that list, too.
I added a note to the README about the Indentation forms.
For more advanced indentation work, I opened #38. Swank provides a bunch of information on how to indent correctly (or close there to), but it needs to be setup in a way that can be accessed by the indenter.
I'm going to close this unless there are specific issues that can be fixed seperately to issue #38 .
Changing
to