In Windows I can set a default language for each window/application. So whenever I open any new application input language is automatically changes to default. This allows me to chat with my friends via Skype in one language and write code in IDE in another language without having to switch input every time I go to Skype/return to IDE.
Is there a way to set up something similar in Mac OS?