Heat oil in a vessel, add the mustard and curry leaves until they crackle.
Add the sliced onion and fry till translucent.
Add the soaked dal and fry till cooked on shallow heat.
Now add the turmeric and red chilly flakes with the finely chopped green chillies.
Add the boiled rice and stir fry. Sprinkle the lemon juice and some water over this,cover with lid and allow to steam for a few minutes till the rice is soft.
Add the roasted peanuts, sesame seeds and grated coconut and mix into the rice.
Garnish with chopped coriander and serve hot.