@Jes
I agree with you completely. But this is exactly what I'm talking about. I started learning in the library and it was MUCH better, just as you say. But the problem is that I was able to go to the library for a few days when I had enough willpower. After that I just couldn't force myself to go to the library. As Steve says, willpower is just a temporary bust.
@jwz
Well I think I've found the solution. Building self-discipline as described in the
self-discipline series.
1. you accept your situation
2. use willpower to alter your environment, friends etc.
3. build discipline through "progressive weight training theory" that is step by step.
So we have to figure out the point number 2. It might be easier to do that with the goal in losing weight but with studying it's harder.