When learning, there are times in which you are focused and times in which you allow your mind to wander. Both modes are valuable to allow your brain to learn something. Take regular breaks, meditate, think about other things, and give yourself plenty of time in both modes.
What I learned from Coursera's "Learning How to Learn"
“[Meditation] is not about clearing the mind; it’s about focusing on one thing. When the mind wanders, the meditation isn’t a failure. Our brain is like a wayward puppy, out of control. Catching it and putting it back to the object of focus is the mediation.” -- Brooks, director of the Austin Psychology and Assessment Center
Meditation Techniques For People Who Hate Meditation
Concentration meditation involves focusing on a single point. In this form of meditation, you simply refocus your awareness on the chosen object of attention each time you notice your mind wandering. Through this process, your ability to concentrate improves.
Meditation 101: Techniques, Benefits, and a Beginner's How-to