In a heavy bottomed saucepan heat the oil over medium heat and gently fry the onion until soft (about 4-5 minutes). Add the rice and stir well until coated in oil; fry for a minute or so.
For a relaxing atmosphere in the kitchen I recommend my personal Elle Republic: Chilled Out Kitchen Tunes Playlist on Spotify.