Keep your living area clean. Make sure that dents and cracks where pests can flourish are dealt with. Make sure that food wastes are not unattended, clean food and edible spills, keep sugar and other sweet or attractive edible items in sealed containers.
Lack of food can be a good deterrent to ants. Also, try to use only your dining area for dealing with food. It is a common practice to use living space for eating. This can have a bad influence when ants choose to infest your place.