Share your insights or perspective on the financial matter presented in the input.

How can I invest in an index fund but screen out (remove) certain categories of socially irresponsible investments?
It would involve manual effort, but there is just a handful of exclusions,  buy the fund you want, plug into a tool like Morningstar Instant X Ray,  find out your $10k position includes $567.89 of defense contractor Lockheed Martin,  and sell short $567.89 of Lockheed Martin.  Check you're in sync periodically (the fund or index balance may change); when you sell the fund close your shorts too.