code: def beginning_of_line(event):
      " Move to the start of the current line. "
      buff = event.current_buffer
      buff.cursor_position += buff.document.get_start_of_line_position(after_whitespace=Falsef beginning_of_line(event):
      " Move to the start of the current line. "
      buff = event.current_buffer
      buff.cursor_position += buff.document.get_start_of_line_position(after_whitespace=False)
docs: Move to the start of the current line.