I do this...
It works better with my cheap no name u-lock with the key hole on the end of the lock bar than it does with my Kryptonite lock with the key hole on the bottom of the lock bar. A little awkward getting the Krypto locked and unlocked in this position. So I just leave the Krypto locked on the bike rack at work.