@register(u'beginning-of-line')
def beginning_of_line(event):
 buff = event.current_buffer
 buff.cursor_position += buff.document.get_start_of_line_position(after_whitespace=False)

@ register ( u'beginning-of-line' ) def beginning_of_line ( event ) : buff = event . current_buffer buff . cursor_position += buff . document . get_start_of_line_position ( after_whitespace = False )
move to the start of the current line .