(progn
(setq hydra-is-helpful t)
(setq hydra-lv t)
+
(defhydra hydra-zoom (global-map "<f2>")
"zoom"
("g" text-scale-increase "in")
("v" recenter-top-bottom "recenter")
("q" nil "quit"))
- (global-set-key
- (kbd "C-c C-v")
- (defhydra toggle ()
- "toggle"
- ("a" abbrev-mode "abbrev" :color blue)
- ("d" toggle-debug-on-error "debug" :color blue)
- ("f" auto-fill-mode "fill" :color blue)
- ("t" toggle-truncate-lines "truncate" :color blue)
- ("w" whitespace-mode "whitespace" :color blue)
- ("q" nil "cancel")))
-
(defhydra hydra-launcher (:color blue)
"Launch"
("h" man "man")
(defhydra hydra-toggle (:color pink)
"
-_a_ abbrev-mode: % 4`abbrev-mode^^^^ _f_ auto-fill-mode: %`auto-fill-function
-_d_ debug-on-error: % 4`debug-on-error^ _t_ truncate-lines: %`truncate-lines
-_w_ whitespace-mode:% 4`whitespace-mode _g_ golden-ratio-mode: %`golden-ratio-mode
+_a_ abbrev-mode: % 4`abbrev-mode^^^^ _f_ auto-fill-mode: %`auto-fill-function
+_c_ auto-complete-mode: % 4`auto-complete-mode _r_ auto-revert-mode: %`auto-revert-mode
+_d_ debug-on-error: % 4`debug-on-error^ _t_ truncate-lines: %`truncate-lines
+_w_ whitespace-mode: % 4`whitespace-mode _g_ golden-ratio-mode: %`golden-ratio-mode
+_l_ linum-mode: % 4`linum-mode _k_ linum relative: %`linum-format
"
("a" abbrev-mode nil)
+ ("c" auto-complete-mode nil)
("i" aggressive-indent-mode nil)
("d" toggle-debug-on-error nil)
("f" auto-fill-mode nil)
("g" golden-ratio-mode nil)
("t" toggle-truncate-lines nil)
- ("r" global-auto-revert-mode nil)
("w" whitespace-mode nil)
+ ("r" auto-revert-mode nil)
+ ("l" linum-mode nil)
+ ("k" linum-relative-toggle nil)
("q" nil "cancel"))
(global-set-key (kbd "C-c C-v") 'hydra-toggle/body)
)
+
+
#+END_SRC
** ibuffer
[2014-05-21 Wed 23:54]