From fb1db05c3e8e13579d75fe1598d1bdd4bc60c795 Mon Sep 17 00:00:00 2001 From: Greg Sexton Date: Sun, 26 Apr 2015 14:49:24 +0100 Subject: [PATCH] Improve doc --- README.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 4fd6b93..7ba52df 100644 --- a/README.md +++ b/README.md @@ -52,7 +52,8 @@ Origami has been tested on Emacs 24.3, 24.4 and 24.5. Origami works by parsing the buffer to determine a fold structure. -The following commands are supplied to manipulate folds in the buffer: +The following commands are supplied to manipulate folds in the +buffer - those in bold are particularly useful: @@ -91,7 +92,7 @@ The following commands are supplied to manipulate folds in the buffer: - + @@ -111,7 +112,7 @@ The following commands are supplied to manipulate folds in the buffer: - + @@ -126,12 +127,12 @@ The following commands are supplied to manipulate folds in the buffer: - + - + @@ -156,9 +157,8 @@ To some degree, yes. Currently out of the box support is provided for: * Python * elisp -Anything not in this list will be folded using -indentation. This works surprisingly well for most -major-modes and is great for folding text. +Anything not in this list will be folded using indentation. This works +surprisingly well for most major-modes and is great for folding text. It should be trivial to add support for any language that uses braces to delimit blocks. Just add to `origami-parser-alist` something like:
origami-recursively-toggle-nodeorigami-recursively-toggle-node Acts like org-mode header collapsing. Cycle a fold between open, recursively open, closed.
origami-show-only-nodeorigami-show-only-node Close everything but the folds necessary to see the point. Very useful for concentrating on an area of code.
origami-undoorigami-undo Undo the last folding operation.
origami-redoorigami-redo Redo the last undone folding operation.