So I killed Heimskr because he pissed me off so much. He's the Talos preacher guy at the center of Whiterun. Okay, I was hidden when I shot him from the wall of Jorrvaskr, and before the arrow had even hit, I dropped behind that wall and was clearly out of everyone's sight. I remained hidden for awhile and then came out. The fuzz around the body was gone, and when I talked to a guard, he said some random things he always says. So, no-one was after me. Or so I thought. Went to Dragonreach to talk to Jarl about the dragon I had killed, and suddenly the whole court attacked me! Every guard, the wizard, Jarl and his steward and bodyguard, just everyone. Why is this since I wasn't caught of the murder in the first place? At least the guards in the street don't know I do it, so how do these guys? And how do I stop them from attacking me? Would there be a console command, or could visiting the Thieves' Guild work (my bounty is 0 though)?