Compunction comes when you consider how much you have grieved God Who is so good, so sweet, so merciful, so kind, and entirely full of love; Who was crucified and suffered everything for us. When you meditate on these things and other things the Lord has suffered, they bring compunction.
If someone is judged worthy to receive the gift of knowledge but allows his heart to be full of bitterness or rancor or aversion to another, it is as if he had been struck in the eye by a thornbush. That is why knowledge is no good without charity.
Grow calm, grow quiet after harmful noise... you will experience a certain movement towards eternity; gradually, like a still, small voice, a thought will come to you as to who you are and what is your end and purpose... this is a sign of the approach of the word of God in your soul.
My brother, the passions are afflictions; and so the Lord does not excommunicate us because of them, but He says: 'Call upon me in the time of affliction; and I will deliver thee, and thou shalt glorify me'. Therefore, when beset by any kind of passion, there is nothing more useful than to call upon the Name of God. All we can do, weak as we are, is to flee for refuge to the Name of Jesus. For the passions, being demons, retreat if this Name is invoked.
The way to attain compunction is an attentive life. ‘The beginning of repentance comes from the fear of God and attention,’ as the holy martyr Boniface says.
If you have received from God the gift of knowledge, however limited, beware of neglecting charity and temperance. They are virtues which radically purify the soul from passions and so open the way of knowledge continually.