@register(u'beginning-of-history')
def beginning_of_history(event):
 event.current_buffer.go_to_history(0)

@ register ( u'beginning-of-history' ) def beginning_of_history ( event ) : event . current_buffer . go_to_history ( 0 )
move to the first line in the history .