Having been involved in pacemaker design, and that of many other invasive medical instruments, I can confidently say... no, your pacemaker will not be affected by the batteries or their control electronics under your bed.
Aside from some obscure industrial processes you are most unlikely to come into contact with the only things you need to avoid are the antennas of high power (10W+) radio transmitters and... hhmm... nothing else I can think of :)
Have a chat with your cardiologist and/or the local agent for your pacemaker manufacturer.
__________________
"I beseech you in the bowels of Christ think it possible you may be mistaken"
Oliver Cromwell, 3rd August 1650 - in a letter to the General Assembly of the Kirk of Scotland