His lifestyle choices allowed him to plan the assassination, carry it out and formulate a priority for anyone surrounding his primary target.
There are schizoid and schizo-affective disorders that would benefit from medication but aren't certifiable.
He is not an atheist either. Atheism is very different than believing in NOTHING.
He was a killer by choice with a mission for his priorities and he did it without supervision.
He acted in a manner he felt was necessary for reasons that are dominated by the 'tone' of the country. If this guy 'get off' on 'sanity' charges it will be a miscarriage of justice. Anyone that can be autonomous in acting to kill isn't insane regardless of how dysfunctional they may be.
He attended classes, kept a schedule and knew that guns destroyed life. He understood what he was doing.