(mode edit
  {{{  moving
  ( keybind backward-character ( $esc "l "e ) )
  ( keybind backward-word ( $esc "l "w ) )
  ( keybind beginning-of-line ( $esc "s "l ) )
  ( keybind forward-character ( $esc "r "i ) )
  ( keybind forward-word ( $esc "r "w ) )
  ( keybind end-of-line ( $esc "e "l ) )
  ( keybind previous-line- ( $esc "u "p ) )
  ( keybind previous-page- ($esc "p "u) )
  ( keybind mtool-top ( $esc "s "f ) )
  ( keybind beginning-of-fold ( $esc "s "F ) )
  ( keybind next-line- ( $esc "d "n ) )
  ( keybind next-page- ($esc "p "d) )
  ( keybind mtool-bot ( $esc "b "o ) )
  ( keybind end-of-fold ( $esc "b "O ) )
  ( keybind goto-line ( $esc "g "o ) )
  ( keybind goto-matching-fence ( $esc "] ) )
  ( keybind search-forward ( $esc "f "i ) )
  ( keybind search-reverse ( $esc "f "r ) )
  ( keybind incremental-search-forward ( $esc "i "s ) )
  }}}
  {{{  editing and deleting
  ( keybind newline-and-indent- ( C-M ) )
  ( keybind newline-and-indent- ( C-J ) )
  ( keybind go_to_next_tab ( $esc "g "t ) )
  ( keybind define-tab ( $esc "d "t ) )
  ( keybind delete-previous-character- ( $esc "b "s ) )
  ( keybind append-to-previous-line ( $esc "j "o ) )
  ( keybind delspaces ( $esc "d "s ) )
  ( keybind quote-character ( C-V ) )
  ( keybind delete-character- ( $esc "d "c ) )
  ( keybind delete-to-end-of-line ( $esc "d "e ) )
  ( keybind undo-delete-character ( $esc "u "c ) )
  ( keybind delete-line ( $esc "d "l ) )
  ( keybind undo-delete-line ( $esc "u "l ) )
  ( keybind query-replace-string ( $esc "r "p ) )
  ( keybind wrap-word- ( $space  ) )
  @if-using (L-EXT)
     ( keybind paired-parens ( "(  ) )
     ( keybind paired-brackets ( "[  ) )
     ( keybind paired-curly-brackets ( "{  ) )
     ( keybind singlequotes ( "' ) )
     ( keybind doublequotes ( "" ) )
     ( keybind semicolon ( ";  ) )
  @fi
  }}}
  {{{  folding
  ( keybind open-fold ( $esc "o "p ) )
  ( keybind enter-fold- ( $esc "e "n ) )
  ( keybind close-fold ( $esc "c "l ) )
  ( keybind exit-fold ( $esc "e "x ) )
  ( keybind auto-header ( $esc "a "h ) )
  ( keybind create-fold- ( $esc "c "r ) )
  ( keybind unfold-fold ( $esc "r "e ) )
  ( keybind toggle-file-fold ( $esc "f "f ) )
  ( keybind attach-file-to-fold ( $esc "a "t ) )
  ( keybind set-language ( $esc "l "a ) )
  }}}
  {{{  linehandling
  ( keybind double-line ( $esc "c "o ) )
  ( keybind move-line- ( $esc "m "o ) )
  ( keybind kill-line- ( $esc "p "i ) )
  ( keybind copy-to-kill-buffer- ( $esc "c "p ) )
  ( keybind insert-folded-kill-buffer- ( $esc "p "p ) )
  }}}
  {{{  files
  ( keybind insert-file- ( $esc "i "n ) )
  ( keybind read-file- ( $esc "o "f ) )
  ( keybind save-file- ( $esc "s "a ) )
  ( keybind set-read-tab-width ( $esc "r "t ) )
  ( keybind save-file-with-leading-tabs ( $esc "s "t ) )
  ( keybind write-file- ( $esc "w "f ) )
  ( keybind previous-file ( $esc "p "f ) )
  ( keybind next-file ( $esc "n "f ) )
  }}}
  {{{  helps
  ( keybind center-and-redraw-display ( $esc "r "f ) )
  ( keybind describe-fold ( $esc "f "? ) )
  ( keybind help ( $esc "h "e ) )
  ( keybind describe-bindings ( $esc "h "b ) )
  }}}
  {{{  exit
  ( keybind exit-origami- ( $esc "q "u ) )
  ( keybind save-and-exit-origami- ( $esc "s "e ) )
  }}}
  {{{  macros
  ( keybind define-macro ( $esc "d "m ) )
  ( keybind execute-macro ( $esc "c "m ) )
  ( keybind user-macro-0 ( $esc "m "0 ) )
  ( keybind user-macro-1 ( $esc "m "1 ) )
  ( keybind user-macro-2 ( $esc "m "2 ) )
  ( keybind user-macro-3 ( $esc "m "3 ) )
  ( keybind user-macro-4 ( $esc "m "4 ) )
  ( keybind user-macro-5 ( $esc "m "5 ) )
  ( keybind user-macro-6 ( $esc "m "6 ) )
  ( keybind user-macro-7 ( $esc "m "7 ) )
  ( keybind user-macro-8 ( $esc "m "8 ) )
  ( keybind user-macro-9 ( $esc "m "9 ) )
  ( keybind def-user-macro ( $esc "d "u ) )
  }}}
  {{{  system
  ( keybind shell ( $esc "s "h ) )
  ( keybind shell-command ( $esc "s "c ) )
  ( keybind suspend-origami ( $esc "s "u ) )
  ( keybind filter-buffer ( $esc "f "b ) )
  ( keybind pipe-from-command ( $esc "< "p ) )
  ( keybind pipe-to-command ( $esc "> "p ) )
  ( keybind pipe-kbd-from-command ( $esc "p "k ) )
  }}}
  {{{  advanced commands
  {{{  area
  ( keybind menu-start- ( $esc "@ "a ) )
  ( keybind menu-again ( $esc "? "a ) )
  ( keybind menu-previous ( $esc "< "a ) )
  ( keybind menu-previous-page ( $esc "{ "a ) )
  ( keybind menu-next ( $esc "> "a ) )
  ( keybind menu-next-page ( $esc "} "a ) )
  ( keybind menu-end ( $esc "$ "a ) )
  ( keybind call-make- ( $esc "m "a ) )
  ( keybind call-make-error- ( $esc "g "e ) )
  }}}
  {{{  get-x-selection
  ( keybind get-x-selection ( $esc "g "s ) )
  }}}
  {{{  paragraph
  ( keybind fill-paragraph ( $esc "s $space  ) )
  ( keybind inv-blank-handle ( $esc "s "m  ) )
  ( keybind set-fill-column- ( $esc "s ".  ) )
  }}}
  {{{  ansi2kr
  @if-using (L-EXT)
     ( keybind ansi-to-kr ( $esc "k "r ) )
     ( keybind ifdef-ansi-to-kr ( $esc "i "k ) )
  @fi
  }}}
  {{{  arguments
  ( keybind set-argument-0 ( $esc "0 ) )
  ( keybind set-argument-1 ( $esc "1 ) )
  ( keybind set-argument-2 ( $esc "2 ) )
  ( keybind set-argument-3 ( $esc "3 ) )
  ( keybind set-argument-4 ( $esc "4 ) )
  ( keybind set-argument-5 ( $esc "5 ) )
  ( keybind set-argument-6 ( $esc "6 ) )
  ( keybind set-argument-7 ( $esc "7 ) )
  ( keybind set-argument-8 ( $esc "8 ) )
  ( keybind set-argument-9 ( $esc "9 ) )
  }}}
  {{{  lookup
  ( keybind lookup ( $esc "l "o ) )
  }}}
  {{{  modes
  {{{  switch-to-move-mode
  ( keybind switch-to-move-mode ( $esc $esc ) )
  }}}
  {{{  set-file-unchanged
  ( keybind set-file-unchanged ( $esc "- "c ) )
  }}}
  {{{  mode-autosave
  ( keybind add-mode-autosave ( $esc "+ "a ) )
  ( keybind delete-mode-autosave ( $esc "- "a ) )
  }}}
  {{{  echo
  ( keybind add-mode-echo ( $esc "+ "e ) )
  ( keybind delete-mode-echo ( $esc "- "e ) )
  }}}
  @if-using (L-EXT)
     {{{  extended
     ( keybind add-mode-extended ( $esc "+ "x ) )
     ( keybind delete-mode-extended ( $esc "- "x ) )
     }}}
  @fi
  {{{  wrap
  ( keybind add-mode-wrap ( $esc "+ "w ) )
  ( keybind delete-mode-wrap ( $esc "- "w ) )
  }}}
  {{{  overwrite
  ( keybind add-mode-overwrite ( $esc "+ "o ) )
  ( keybind delete-mode-overwrite ( $esc "- "o ) )
  }}}
  {{{  view
  ( keybind add-mode-view ( $esc "+ "v ) )
  ( keybind delete-mode-view ( $esc "- "v ) )
  }}}
  {{{  statusline
  ( keybind switch-status-line-on ( $esc "+ "s ) )
  ( keybind switch-status-line-off ( $esc "- "s ) )
  }}}
  {{{  file-based
  ( keybind add-mode-file-based ( $esc "+ "% ) )
  ( keybind delete-mode-file-based ( $esc "- "% ) )
  }}}
  {{{  auto-indent
  ( keybind add-mode-auto-indent ( $esc "+ "i ) )
  ( keybind delete-mode-auto-indent ( $esc "- "i ) )
  }}}
  {{{  buffer-save
  ( keybind add-mode-buffer-save ( $esc "+ "b ) )
  ( keybind delete-mode-buffer-save ( $esc "- "b ) )
  }}}
  }}}
  {{{  buffer
  ( keybind dumb-buffers-to-file ( $esc "> "b ) )
  ( keybind get-buffers-from-file ( $esc "< "b ) )
  }}}
  }}}
  {{{  pseudo-functions
  ( keybind open-fold ( $EF3 ) )
  ( keybind enter-fold- ( $EF2 $EF3 ) )
  ( keybind close-fold ( $EF4 ) )
  ( keybind exit-fold ( $EF2 $EF4 ) )
  ( keybind goto-line ( $EF2 "g ) )
  ( keybind incremental-search-forward ( $EF2 "f ) )
  ( keybind query-replace-string ( $EF2 "r ) )
  ( keybind set-language ( $EF2 "l ) )
  ( keybind insert-file- ( $EF2 "i ) )
  ( keybind read-file- ( $EF2 "o ) )
  ( keybind save-file- ( $EF2 "s ) )
  ( keybind write-file- ( $EF2 "w ) )
  ( keybind center-and-redraw-display ( $EF2 $EF2 ) )
  ( keybind help ( $EF2 "h ) )
  ( keybind file-menu ( $EF1 ) )
  ( keybind exit-origami- ( $EF2 "q ) )
  }}}
  @if-using (control)
     {{{  some control keys (wordstar like?)
     ( keybind backward-character ( C-S ) )
     ( keybind backward-word ( C-A ) )
     ( keybind beginning-of-line ( C-Q C-S ) )
     ( keybind forward-character ( C-D ) )
     ( keybind forward-word ( C-F ) )
     ( keybind end-of-line ( C-Q C-D ) )
     ( keybind previous-line- ( C-E ) )
     ( keybind mtool-top ( C-Q C-E ) )
     ( keybind next-line- ( C-X ) )
     ( keybind mtool-bot ( C-Q C-X ) )
     ( keybind goto-line ( C-Q "g ) )
     ( keybind incremental-search-forward ( C-Q "f ) )
     ( keybind delete-character- ( C-G ) )
     ( keybind query-replace-string ( C-Q "r ) )
     ( keybind open-fold ( C-W ) )
     ( keybind enter-fold- ( C-Q C-W ) )
     ( keybind close-fold ( C-R ) )
     ( keybind exit-fold ( C-Q C-R ) )
     ( keybind transpose-characters ( C-T ) )
     ( keybind suspend-origami ( C-Z ) )
     ( keybind set-language ( C-Q "l ) )
     ( keybind insert-file- ( C-Q "i ) )
     ( keybind read-file- ( C-Q "o ) )
     ( keybind save-file- ( C-Q "s ) )
     ( keybind write-file- ( C-Q "w ) )
     ( keybind center-and-redraw-display ( C-Q C-Q ) )
     ( keybind help ( C-Q "h ) )
     ( keybind describe-bindings ( C-Q "? ) )
     ( keybind exit-origami- ( C-Q "q ) )
     ( keybind define-macro ( C-Q "d "m ) )
     ( keybind execute-macro ( C-Q "m ) )
     ( keybind kill-line- ( C-K ) )
     ( keybind copy-to-kill-buffer- ( C-Q C-K ) )
     ( keybind insert-folded-kill-buffer- ( C-P ) )
     ( keybind delete-line ( C-L ) )
     ( keybind undo-delete-line ( C-Q C-L ) )
     ( keybind double-line ( C-O ) )
     ( keybind move-line- ( C-Q C-O ) )
     }}}
  @fi
  @if-using ( sun SUN PC mgr hpterm xterm vt100 ATARI)
     {{{  delete-maps
     @if-using not(ATARI)
        ( terminal
           ( @if-using ( sun ) sun @fi
             @if-using ( SUN ) SUN @fi
             @if-using ( PC ) PC @fi
             @if-using ( xterm ) xterm @fi
             @if-using ( vt100 ) vt100 @fi
             @if-using ( mgr ) mgr @fi
             @if-using ( hpterm ) hpterm @fi
           )
     @fi
        ( keybind delete-character- ( $delete ) )
     @if-using not(ATARI) ) @fi
     }}}
  @fi
  @if-using ( sun SUN PC mgr xterm vt100 ATARI)
     {{{  esc delete-maps
     @if-using not(ATARI)
        ( terminal
           ( @if-using ( sun ) sun @fi
             @if-using ( SUN ) SUN @fi
             @if-using ( PC ) PC @fi
             @if-using ( xterm ) xterm @fi
             @if-using ( vt100 ) vt100 @fi
             @if-using ( mgr ) mgr @fi
           )
     @fi
        ( keybind delspaces ( $esc $delete ) )
     @if-using not(ATARI) ) @fi
     }}}
  @fi
  @if-using ( sun SUN PC mgr hpterm xterm vt100 ATARI)
     {{{  backspace-maps
     @if-using not(ATARI)
        ( terminal
           ( @if-using ( sun ) sun @fi
             @if-using ( SUN ) SUN @fi
             @if-using ( PC ) PC @fi
             @if-using ( xterm ) xterm @fi
             @if-using ( vt100 ) vt100 @fi
             @if-using ( mgr ) mgr @fi
             @if-using ( hpterm ) hpterm @fi
           )
     @fi
        ( keybind delete-previous-character- ( $backspace ) )
        ( keybind append-to-previous-line ( $esc $backspace ) )
     @if-using not(ATARI) ) @fi
     }}}
  @fi
  @if-using ( sun SUN mgr xterm vt100 ATARI)
     {{{  fx-maps
     @if-using not(ATARI)
        ( terminal
           ( @if-using ( sun ) sun @fi
             @if-using ( SUN ) SUN @fi
             @if-using ( xterm ) xterm @fi
             @if-using ( vt100 ) vt100 @fi
             @if-using ( mgr ) mgr @fi
           )
     @fi
        ( keybind open-fold ( $f3 ) )
        ( keybind enter-fold- ( $f2 $f3 ) )
        ( keybind close-fold ( $f4 ) )
        ( keybind exit-fold ( $f2 $f4 ) )
        ( keybind goto-line ( $f2 "g ) )
        ( keybind incremental-search-forward ( $f2 "f ) )
        ( keybind query-replace-string ( $f2 "r ) )
        ( keybind set-language ( $f2 "l ) )
        ( keybind insert-file- ( $f2 "i ) )
        ( keybind read-file- ( $f2 "o ) )
        ( keybind save-file- ( $f2 "s ) )
        ( keybind write-file- ( $f2 "w ) )
        ( keybind center-and-redraw-display ( $f2 $f2 ) )
        ( keybind help ( $f2 "h ) )
        ( keybind file-menu ( $f1 ) )
        ( keybind exit-origami- ( $f2 "q ) )
     @if-using not(ATARI) ) @fi
     }}}
  @fi
  @if-using ( sun mgr hpterm xterm vt100 )
     {{{  cursor-maps
     ( terminal
        ( @if-using ( sun ) sun @fi
          @if-using ( xterm ) xterm @fi
          @if-using ( vt100 ) vt100 @fi
          @if-using ( mgr ) mgr @fi
          @if-using ( hpterm ) hpterm @fi
        )
        ( keybind backward-character ( $left ) )
        ( keybind forward-character ( $right) )
        ( keybind next-line- ( $down ) )
        ( keybind previous-line- ( $up ) )
     )
     }}}
  @fi
  @if-using ( sun SUN PC mgr xterm vt100 ATARI)
     {{{  tab-maps
     @if-using not(ATARI)
        ( terminal
           ( @if-using ( sun ) sun @fi
             @if-using ( SUN ) SUN @fi
             @if-using ( PC ) PC @fi
             @if-using ( xterm ) xterm @fi
             @if-using ( vt100 ) vt100 @fi
             @if-using ( mgr ) mgr @fi
           )
      @fi
        ( keybind go_to_next_tab ( $tab ) )
        ( keybind define-tab ( $esc $tab ) )
     @if-using not(ATARI) ) @fi
     }}}
  @fi
  @if-using ( SUN ATARI)
     {{{  SUN-terminal R-keys
     @if-using ( SUN ) ( terminal ( SUN ) @fi
     {{{  moving
     ( keybind backward-character ( $R10 ) )
     ( keybind backward-character ( $left ) )
     ( keybind backward-word ( $R13 $R10 ) )
     ( keybind backward-word ( $R13 $left ) )
     ( keybind beginning-of-line ( $R7 ) )
     ( keybind forward-character ( $R12 ) )
     ( keybind forward-character ( $right ) )
     ( keybind forward-word ( $R13 $R12 ) )
     ( keybind forward-word ( $R13 $right ) )
     ( keybind end-of-line ( $R9 ) )
     ( keybind previous-line- ( $R8 ) )
     ( keybind previous-line- ( $up ) )
     ( keybind previous-page- ( $R13 $R1 ) )
     ( keybind mtool-top ( $R13 $R8 ) )
     ( keybind mtool-top ( $R13 $up ) )
     ( keybind beginning-of-fold ( $R1 ) )
     ( keybind next-line- ( $R14 ) )
     ( keybind next-line- ( $down ) )
     ( keybind next-page- ( $R13 $R3 ) )
     ( keybind mtool-bot ( $R13 $R14 ) )
     ( keybind mtool-bot ( $R13 $down ) )
     ( keybind end-of-fold ( $R3 ) )
     ( keybind goto-line ( $R13 "g ) )
     ( keybind incremental-search-forward ( $R13 "f ) )
     }}}
     {{{  editing and deleting
     ( keybind delete-line ( $R13 $R9 ) )
     ( keybind query-replace-string ( $R13 "r ) )
     ( keybind undo-delete-line ( $R13 $R7 ) )
     }}}
     {{{  folding
     ( keybind open-fold ( $R4 ) )
     ( keybind enter-fold- ( $R13 $R4 ) )
     ( keybind close-fold ( $R6 ) )
     ( keybind exit-fold ( $R13 $R6 ) )
     ( keybind create-fold- ( $R15 ) )
     ( keybind unfold-fold ( $R13 $R15 ) )
     ( keybind toggle-file-fold ( $R13 $R11 ) )
     ( keybind set-language ( $R13 "l ) )
     }}}
     {{{  linehandling
     ( keybind double-line ( $R13 $R5 ) )
     ( keybind move-line- ( $R13 $R2 ) )
     ( keybind kill-line- ( $R2 ) )
     ( keybind copy-to-kill-buffer- ( $R5 ) )
     ( keybind insert-folded-kill-buffer- ( $R11 ) )
     }}}
     {{{  files
     ( keybind insert-file- ( $R13 "i ) )
     ( keybind read-file- ( $R13 "o ) )
     ( keybind save-file- ( $R13 "s ) )
     ( keybind write-file- ( $R13 "w ) )
     }}}
     {{{  helps
     ( keybind center-and-redraw-display ( $R13 $R13 ) )
     ( keybind help ( $R13 "h ) )
     ( keybind describe-bindings ( $R13 "? ) )
     }}}
     {{{  exit
     ( keybind exit-origami- ( $R13 "q ) )
     }}}
     {{{  macros
     ( keybind define-macro ( $R13 "d "m ) )
     ( keybind execute-macro ( $R13 "m ) )
     }}}
     {{{  system
     }}}
     {{{  advanced commands
     ( keybind set-argument-0 ( $R13 "0 ) )
     ( keybind set-argument-1 ( $R13 "1 ) )
     ( keybind set-argument-2 ( $R13 "2 ) )
     ( keybind set-argument-3 ( $R13 "3 ) )
     ( keybind set-argument-4 ( $R13 "4 ) )
     ( keybind set-argument-5 ( $R13 "5 ) )
     ( keybind set-argument-6 ( $R13 "6 ) )
     ( keybind set-argument-7 ( $R13 "7 ) )
     ( keybind set-argument-8 ( $R13 "8 ) )
     ( keybind set-argument-9 ( $R13 "9 ) )
     }}}
     {{{  modes
     }}}
     @if-using ( SUN ) ) @fi
     }}}
  @fi
  @if-using ( PC )
     {{{  pc-terminal
     ( terminal ( PC )
       {{{  moving
       ( keybind backward-character ( $dos-left ) )
       ( keybind backward-word ( $dos-ins $dos-left ) )
       ( keybind forward-character ( $dos-right ) )
       ( keybind forward-word ( $dos-ins $dos-right ) )
       ( keybind previous-line- ( $dos-up ) )
       ( keybind mtool-top ( $dos-ins $dos-up ) )
       ( keybind next-line- ( $dos-down ) )
       ( keybind mtool-bot ( $dos-ins $dos-down ) )
       ( keybind goto-line ( $dos-ins "g ) )
       ( keybind incremental-search-forward ( $dos-ins "f ) )
       }}}
       {{{  editing and deleting
       ( keybind delete-line ( $dos-ins $dos-end ) )
       ( keybind query-replace-string ( $dos-ins "r ) )
       }}}
       {{{  folding
       ( keybind open-fold ( $dos-home ) )
       ( keybind enter-fold- ( $dos-ins $dos-home ) )
       ( keybind close-fold ( $dos-prev-page ) )
       ( keybind exit-fold ( $dos-ins $dos-prev-page ) )
       ( keybind create-fold- ( $dos-next-page ) )
       ( keybind unfold-fold ( $dos-ins $dos-next-page ) )
       ( keybind set-language ( $dos-ins "l ) )
       }}}
       {{{  linehandling
       }}}
       {{{  files
       ( keybind insert-file- ( $dos-ins "i ) )
       ( keybind read-file- ( $dos-ins "o ) )
       ( keybind save-file- ( $dos-ins "s ) )
       ( keybind write-file- ( $dos-ins "w ) )
       }}}
       {{{  helps
       ( keybind center-and-redraw-display ( $dos-ins $dos-ins ) )
       ( keybind help ( $dos-ins "h ) )
       ( keybind describe-bindings ( $dos-ins "? ) )
       }}}
       {{{  exit
       ( keybind exit-origami- ( $dos-ins "q ) )
       }}}
       {{{  macros
       ( keybind define-macro                    ($dos-ins "d "m)       )
       ( keybind execute-macro                   ($dos-ins "m)          )
       }}}
       {{{  system
       }}}
       {{{  advanced commands
       }}}
       {{{  modes
       }}}
     )
     }}}
  @fi
)
