Apple - Use clamshell mode without power adapter
You can use Insomniax to disable sleep when the display is closed. This will mean that you can close the lid and display the screen on a secondary monitor mode without needing to have a power adapter connected as the Mac will not sleep when you close the lid.
Insomniax is now abandonware and no further updates or binaries will be supplied. Further info.