Harmonia
Home 
Research
   Programming by Voice
   Inteactive Transformations
Publications
   Harmonia
   Ensemble
   Pan
Projects
   Framework
   Languages
   Tools
   Harmonia  Mode
   Eclipse
   Applications
  
People
Sponsors
Help Wanted!

Private Area
 Harmonia-Mode User's Guide Printer-Friendly Version  
Manual Contents

  • Introduction

  • Features

  • Reference
  • Commands & Keybindings

    This page lists all user-level commands provided by Harmonia-Mode. It is divided into the following subsections:

    Except for the I-Search filters, any of the commands listed below can be invoked with their keybinding or with M-x [command]. For example, typing M-x harmonia-mode will invoke the harmonia-mode command.

    The I-Search filters are applied by first entering I-Search mode (with C-s or C-r), and then by entering the particular filter's I-Search command, specified below.

    Global Commands

    Command Keybinding Description
    harmonia-mode Switches to harmonia-<language>-mode on the current buffer, auto-detecting the language
    harmonia-structure-browse-larger C-M-left
    C-M-u
    Structure-browses to the structure enclosing the current structure, or initiates structure-browsing at an enclosing structure
    harmonia-structure-browse-smaller C-M-right
    C-M-d
    Structure-browses to the current structure's first sub-structure, or initiates structure-browsing at an enclosing structure
    harmonia-structure-browse-next C-M-down
    C-M-n
    Structure-browses to the next structure of the same size as the current structure, or initiates structure-browsing at a following structure
    harmonia-structure-browse-previous C-M-up
    C-M-p
    Structure-browses to the preceding structure of the same size as the current structure, or initiates structure-browsing at a preceding structure
    harmonia-refresh C-c C-r Redraws the text of the XEmacs buffer from Harmonia's internal data structures
    harmonia-force-analyses C-c C-a Forces all analyses to be run immediately
    harmonia-grow-region-to-branch M-h Enlarges the current XEmacs region (selection) to select the smallest structure enclosing the region, or the current cursor location if the region is inactive.
    harmonia-undo C-x u
    C-_
    C-/
    <undo>
    Reverts the buffer to a previous version in the same way as XEmacs' undo, but uses Harmonia's history mechanism rather than XEmacs' (Note: also bound to C-_, C-/, and <undo>)
    harmonia-goto-next-error C-} Moves the cursor to the first syntactic or semantic error following its current location
    harmonia-goto-previous-error C-{ Moves the cursor to the first syntactic or semantic error preceding its current location
    harmonia-save-log Saves a log of all edits into the file <filename>.hlog

    Cool

    Command Keybinding Description
    harmonia-cool-mode Switches to harmonia-cool-mode in the current buffer

    I-Search Filter Keybinding Description
    Method-name C-s M-m Filter the current interactive search to method-names
    Class-name C-s M-c Filter the current interactive search to class-names
    String C-s M-s Filter the current interactive search to strings
    Comment C-s M-t Filter the current interactive search to comments

    Java

    Command Keybinding Description
    harmonia-java-mode Switches to harmonia-java-mode in the current buffer

    I-Search Filter Keybinding Description
    Class or Interface name C-s M-t Filter the current interactive search to class or interface names
    Class name C-s M-c Filter the current interactive search to class names
    Interface name C-s M-i Filter the current interactive search to interface names
    Method or Constructor name C-s M-m Filter the current interactive search to method or constructor names
    Field Name C-s M-f Filter the current interactive search to field names
    String C-s M-/ Filter the current interactive search to strings
    Comment C-s M-s Filter the current interactive search to comments

    Next Section: Notes about Java mode