You did not indicate which editor you are working in. In any case, if you just enter the initial groove, then its closing pair is immediately added. To enclose the expression in parentheses, you need to use the "wrap" function.
In emacs, it can be paredit-wrap-round or M-( please find emacs paredit cheatsheet here .
In vim using slimv this ,W (if you select the expression first, then the whole expression will be wrapped).
If you happen to wrap the wrong number of elements, you can move them to / from the s-expression (see "slurp" and "barf" for emacs), or you can move the brackets ( ,< or ,> for vim).
source share