Click on the Grimoire Icon to edit your Grimoire in Pillars of Eternity.
Each one of your Grimoires can hold 4 spells of each spell level
Edit your grimoire to select which spells go into it.
You should aim to have multiple grimoires to handle different types of situations that arise.