I want to write a mode for ledger. The first thing I want to do is to be able to insert date stamps. There is a very nice mode in Emacs called
calendar. I want to be able to select a date within it.
How do I register a call-back or something that will be executed when the user has select a date (by pressing enter or any other way that calendar mode already uses).