# This example macro works with your system's hunspell
# command to spell-check the selected block of text.
# The AtomicUndo commands at the beginning and end make
# it possible to undo/redo the entire operation in one
# go. Otherwise the Cut and Paste would each require
# their own undo/redo. Indentation is just for clarity;
# it doesn't affect operation.

AtomicUndo +
MoveSOF
Mark
MoveEOF
  Cut
    SaveClip ~/.ne/.tmp.txt
      System hunspell ~/.ne/.tmp.txt
    OpenClip ~/.ne/.tmp.txt
    System rm -f ~/.ne/.tmp.txt ~/.ne/.tmp.txt.bak
  Paste
AtomicUndo -
