code: def load_emacs_open_in_editor_bindings() -> KeyBindings:
      """
      Pressing C-X C-E will open the buffer in an external editor.
      """
      key_bindings = KeyBindings()
  
      key_bindings.add(
          "c-x", "c-e", filter=emacs_mode & ~has_selection
      )(get_by_name("edit-and-execute-command"))
  
      return key_bindings
  
imports: from __future__ import annotations
  from prompt_toolkit.filters import emacs_mode, has_selection, vi_navigation_mode
  from ..key_bindings import KeyBindings, KeyBindingsBase, merge_key_bindings
  from .named_commands import get_by_name
label_desc: Use image node_id 2 for calling a global function with example usage: load_emacs_open_in_editor_bindings() and returns: key_bindings