Here in MA, if the attorney has his real estate license as well, I believe he can receive some of the commission as a facilitator or buying agent if he wants to help you with the offer, home inspection, and P&S process. You need to check with him/her as to your relationship with each other.
If you came with no real estate agent on your side, then usually the listing agent will receive the full commission as agreed upon by her/him and the sellers. The commission is taken off the overall purchase price and then split between whatever agents are in the transaction, and if there is a buyer's agent representing you (which I strongly recommend these days if you've never bought a home before), then it would cost you nothing extra to have that extra guidance to help you negotiate the price, be there with you at the home inspection, work on the language for the P&S Agreement, help you find a reputable, experienced mortgage broker for financing, making sure deadlines are met by all parties involved, etc.
Just another thing to keep in mind...If the transaction doesn't go through, then your real estate agent doesn't get paid until you close on a home, but if using your attorney throughout the deal and the transaction doesn't go through, he/she may still charge you for their time per transaction.
If you'd like someone to represent you in your home buying experience, let me know. Prudential has a great website you can utilize for free to search for properties, giving you up to date information on the homes, with addresses and maps, neighborhood info, etc. Feel free to contact me anytime with questions on the home buying process or if you'd like someone to show you homes as well. Take care and I wish you well with your search!
Prudential Prime Properties