Re: smoke detectors
Every smoke detector comes with instructions. Follow them!
The International Building Code requires smoke detectors to be installed in accordance with NFPA 72.
NFPA 72, The National Fire Alarm Code, Section 5.7.1.9: "The location of smoke detectors shall be based on an evaluation of potential ambient sources of smoke, moisture, dust, or fumes, and electrical or mechanical influences to minimize nuisance alarms." and 5.7.1.11: "Detectors shall not be installed until after the construction cleanup of all trades is complete and final."
Looking at the installation instructions included with the detector, we find that all these concerns, plus the design of the ceiling, etc. is taken into consideration. Most of the detectors I've installed require a minimum clearance of 4-12" to the wall. (and ceiling for wall mounting) The theory is that smoke curls at corners, and would delay the activation of the detector if too close.