emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] master 42538fa 18/27: Add a `next-error'/`previous-error'/`first-


From: Oleh Krehel
Subject: [elpa] master 42538fa 18/27: Add a `next-error'/`previous-error'/`first-error' example
Date: Sat, 24 Jan 2015 20:36:35 +0000

branch: master
commit 42538fa22e76744ff128cb0845a57cc67fb4a983
Author: Oleh Krehel <address@hidden>
Commit: Oleh Krehel <address@hidden>

    Add a `next-error'/`previous-error'/`first-error' example
    
    * hydra-examples.el (hydra-example-goto-error): New example.
    
    * README.md: Update.
    
    Re #8, thanks, @glucas.
---
 README.md         |    1 +
 hydra-examples.el |   11 ++++++++++-
 hydra.el          |    1 +
 3 files changed, 12 insertions(+), 1 deletions(-)

diff --git a/README.md b/README.md
index 8a2ac8a..5a52369 100644
--- a/README.md
+++ b/README.md
@@ -16,6 +16,7 @@ Here's how I use the examples bundled with Hydra:
 
     (require 'hydra-examples)
     (hydra-create "C-M-w" hydra-example-move-window-splitter)
+    (hydra-create "M-g" hydra-example-goto-error)
 
 You can expand the examples in-place, it still looks elegant:
 
diff --git a/hydra-examples.el b/hydra-examples.el
index f8b0c44..fa63601 100644
--- a/hydra-examples.el
+++ b/hydra-examples.el
@@ -69,7 +69,16 @@
   '(("h" hydra-move-splitter-left)
     ("j" hydra-move-splitter-down)
     ("k" hydra-move-splitter-up)
-    ("l" hydra-move-splitter-right)))
+    ("l" hydra-move-splitter-right))
+  "A four-headed hydra for the window splitter manipulation.
+Works best if you have not more than 4 windows.")
+
+(defvar hydra-example-goto-error
+  '(("h" first-error)
+    ("j" next-error)
+    ("k" previous-error))
+  "A three-headed hydra for jumping between \"errors\".
+Useful for e.g. `occur', `rgrep' and the like.")
 
 (provide 'hydra-examples)
 
diff --git a/hydra.el b/hydra.el
index fa27904..915ab9d 100644
--- a/hydra.el
+++ b/hydra.el
@@ -40,6 +40,7 @@
 ;;
 ;;    (require 'hydra-examples)
 ;;    (hydra-create "C-M-w" hydra-example-move-window-splitter)
+;;    (hydra-create "M-g" hydra-example-goto-error)
 ;;
 ;; You can expand the examples in-place, it still looks elegant:
 ;;



reply via email to

[Prev in Thread] Current Thread [Next in Thread]