Pinning desktops to monitors in 10.9 Is there a way to pin desktops to monitors like you can pin app windows to desktops?

Specifically my problem is I use a macbook and plug and unplug my external monitor a few times a day. Rearranging my desktops and full-screen apps every time is a pain in the rear end and so I hope there's a setting for that that I just can't find.
There was a way to do this a few years ago. I think it was on SL with some third party software, but sadly I can't remember what it was called. Could be discontinued though...

Edit: I remembered: Put the app to the desktop where you want to have it. Right click on dock icon, go to options and select the space you want to assign the app to.