When a new line is pressed before all combinations have been properly closed with a closed parenthesis, add automatic tabulation so that the next line starts in alignment with the start of the still open combination. See edwin approach in the MIT 1986 SICP lectures.