Passage
And I will delight myself in thy commandments, which I have loved;
And I will delight myself in thy commandments, which I have loved;
Psalms 119:45 And I will walk at liberty, for I have sought thy precepts;
Psalms 119:46 And I will speak of thy testimonies before kings, and will not be ashamed;
Psalms 119:47 And I will delight myself in thy commandments, which I have loved;
Psalms 119:48 And I will lift up my hands unto thy commandments, which I have loved, and I will meditate in thy statutes.
Psalms 119:49 ZAIN. Remember the word for thy servant, upon which thou hast caused me to hope.
The verse centers on "light", "delight", "myself", "commandments", and "loved". It is saying that the verse draws attention to "light" and "delight", so its meaning should be read from those terms before moving to application.
The nearby context moves from verse 46's "And I will speak of thy testimonies..." into verse 48's "And I will lift up my hands...", so "light" and "delight" belong inside that flow. In Psalms context, the local focus is worship, trust, the LORD's kingship, and covenant mercy.
A plain takeaway is to answer the verse's own emphasis on "light" and "delight" with trust shaped by these words, not by a vague optimism outside the passage.