In my experience, the closer we get to God, the less desire we have to be around people who take us away from God. Keep your focus on God and watch things change.
You will be shown new interests, taking you to meet new people with a mind focused the same as yours. Your desires will change, allowing you to form bonds with people who share these new desires. You will find peace in other ways and with other people.
As for other types of "habits", I can over-simplify it for you to help you see that we all need to control our habits .....if you were to walk on a specific sidewalk for 10 years, and then you learned that by walking on this sidewalk you could die.....you could stop walking on this sidewalk and take another route, right? A habit is a habit is a habit.....if you can break one habit, like walking on that particular sidewalk, then you can break any habit.
Well that's my opinion anyways.
Peace!!