[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master a4c4eb6 36/72: Add example for `Buffer-menu-mode'
From: |
Oleh Krehel |
Subject: |
[elpa] master a4c4eb6 36/72: Add example for `Buffer-menu-mode' |
Date: |
Fri, 06 Mar 2015 13:04:13 +0000 |
branch: master
commit a4c4eb6acbe2a2de689a11bd6cfe1bd5f8d476eb
Author: Oleh Krehel <address@hidden>
Commit: Oleh Krehel <address@hidden>
Add example for `Buffer-menu-mode'
---
hydra-examples.el | 31 +++++++++++++++++++++++++++++++
1 files changed, 31 insertions(+), 0 deletions(-)
diff --git a/hydra-examples.el b/hydra-examples.el
index 586bb2f..fbe77ee 100644
--- a/hydra-examples.el
+++ b/hydra-examples.el
@@ -187,6 +187,37 @@ _w_ whitespace-mode: %`whitespace-mode
;; "foobar %`abbrev-mode" means roughly (format "foobar %S" abbrev-mode)
;;
;; This means that you actually see the state of the mode that you're changing.
+;;** Example 8: the whole menu for `Buffer-menu-mode'
+(defhydra hydra-buffer-menu (:color pink)
+ "
+ Mark Unmark Actions Search
+-------------------------------------------------------------------------
(__)
+_m_: mark _u_: unmark _x_: execute _R_: re-isearch
(oo)
+_s_: save _U_: unmark up _b_: bury _I_: isearch
/------\\/
+_d_: delete _g_: refresh _O_: multi-occur
/ | ||
+_D_: delete up _T_: files only: %
-28`Buffer-menu-files-only * /\\---/\\
+_~_: modified
~~ ~~
+"
+ ("m" Buffer-menu-mark nil)
+ ("u" Buffer-menu-unmark nil)
+ ("U" Buffer-menu-backup-unmark nil)
+ ("d" Buffer-menu-delete nil)
+ ("D" Buffer-menu-delete-backwards nil)
+ ("s" Buffer-menu-save nil)
+ ("~" Buffer-menu-not-modified nil)
+ ("x" Buffer-menu-execute nil)
+ ("b" Buffer-menu-bury nil)
+ ("g" revert-buffer nil)
+ ("T" Buffer-menu-toggle-files-only nil)
+ ("O" Buffer-menu-multi-occur nil :color blue)
+ ("I" Buffer-menu-isearch-buffers nil :color blue)
+ ("R" Buffer-menu-isearch-buffers-regexp nil :color blue)
+ ("c" nil "cancel")
+ ("v" Buffer-menu-select "select" :color blue)
+ ("o" Buffer-menu-other-window "other-window" :color blue)
+ ("q" quit-window "quit" :color blue))
+;; Recommended binding:
+;; (define-key Buffer-menu-mode-map "." 'hydra-buffer-menu/body)
;;* Windmove helpers
(require 'windmove)
- [elpa] master 4f0ef62 27/72: hydra.el (hydra-pink-fallback): Add, (continued)
- [elpa] master 4f0ef62 27/72: hydra.el (hydra-pink-fallback): Add, Oleh Krehel, 2015/03/06
- [elpa] master 4aa8826 18/72: hydra.el (hydra--message): Take same arguments as `defhydra', Oleh Krehel, 2015/03/06
- [elpa] master b81d078 29/72: Generate a global resetter in `defhydradio', Oleh Krehel, 2015/03/06
- [elpa] master 42cb833 21/72: hydra.el (hydra--hint): Take same arguments as `defhydra', Oleh Krehel, 2015/03/06
- [elpa] master 0a3cc60 30/72: Add compat color-less syntax, Oleh Krehel, 2015/03/06
- [elpa] master 92e1922 19/72: hydra.el (hydra--hint): Take same arguments as `defhydra', Oleh Krehel, 2015/03/06
- [elpa] master 6f7cef2 22/72: Add teal body color, Oleh Krehel, 2015/03/06
- [elpa] master 7010772 32/72: hydra.el (hydra--head-color): Improve, Oleh Krehel, 2015/03/06
- [elpa] master d0e8d57 33/72: hydra.el (hydra-add-font-lock): Add `defhydradio', Oleh Krehel, 2015/03/06
- [elpa] master 0881733 28/72: hydra.el (defhydra): Fix typo, Oleh Krehel, 2015/03/06
- [elpa] master a4c4eb6 36/72: Add example for `Buffer-menu-mode',
Oleh Krehel <=
- [elpa] master 88b32d5 24/72: hydra.el (hydra--hint): Add exception, Oleh Krehel, 2015/03/06
- [elpa] master c41c932 31/72: README.md: fix tables, Oleh Krehel, 2015/03/06
- [elpa] master 1eebfed 34/72: Allow `format'-style width specifiers in docstring, Oleh Krehel, 2015/03/06
- [elpa] master e962ff1 39/72: hydra.el: remove no :pre, :post restriction for Emacs<24.4, Oleh Krehel, 2015/03/06
- [elpa] master a6c6a55 38/72: Improve compatibility for Emacs <= 24.3, Oleh Krehel, 2015/03/06
- [elpa] master 2c01db0 42/72: hydra.el (hydra--handle-nonhead): Update signature, Oleh Krehel, 2015/03/06
- [elpa] master a71b76e 35/72: Intercept quit signals, Oleh Krehel, 2015/03/06
- [elpa] master ae70e9a 41/72: Fix pink and teal Hydras running :post, Oleh Krehel, 2015/03/06
- [elpa] master 71d70f6 46/72: Add :body-pre switch, Oleh Krehel, 2015/03/06
- [elpa] master cb28124 44/72: Allow sexps in Ruby-style docstrings, Oleh Krehel, 2015/03/06