Broken down, here are a few pointers ...
1. First of all, you have to get your tongue just right (corner of the mouth), squint and curl your nose. In that order.
2. Clamp the board firmly at a comfortable height for planing.
3. You have to be able to move along the board pushing the plane and not lunging off balance. Work from the hips and not the shoulders.
4. It helps to have a very fine camber on the jointer as this enables you to steer the blade over the high spots.
5. Before you attach the edge with the plane, determine where the high spots are, and remove these first. Sight down the side of the board and use a level. Mark the high spots with a pencil.
6. Next, do the same with a square to determine where you need to steer the plane to bring the surface back to square.
7. It takes practice, but you need to develop a sense of vertical. This will come with time. Increasingly, you will find the horizontal automatically.
8. Once you are able to take a full shaving of even thickness along the edge - all previous conditions met - you will have a straight, square edge.
Regards from Perth
Derek