(defun main
()
(format t "Hello world")
)
Should be (defun main ()
(format t "Hello world"))
The lisp community has very well established formatting conventions. You pretty much never see closing parens on their own line like this except when reading code written by beginners (or some special cases like package export lists for example, where one might want to leave the list "open" for adding new symbols, similar to a trailing comma in some other languages).