I used to avoid buttonholes on my modern sewing machine, but my Kenmore from the 1970s has a delightful attachment that makes lovely buttonholes of uniform size with ease.
First I set up the machine according to the manual:
The front of the attachment snaps over a tiny gear on the buttonhole plate which replaces the regular bobbin cover plate.
Now for the video of this beauty in action: