summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRavi R Kiran <aine.marina@gmail.com>2015-05-13 21:00:19 (GMT)
committerRavi R Kiran <aine.marina@gmail.com>2015-05-13 21:00:19 (GMT)
commit76f3568bb0912238ded82b2b926d2a1438b468f0 (patch)
tree9aebdc677135665ea9a2a608c8f255a6ebb9695e
parent9f0e4dbe746da6f6ef3e0d560ff4f3d94b04734a (diff)
downloaddotemacs-76f3568bb0912238ded82b2b926d2a1438b468f0.zip
dotemacs-76f3568bb0912238ded82b2b926d2a1438b468f0.tar.gz
dotemacs-76f3568bb0912238ded82b2b926d2a1438b468f0.tar.bz2
Launcher/toggle map
-rw-r--r--lisp/ravi-init-maps.el22
1 files changed, 21 insertions, 1 deletions
diff --git a/lisp/ravi-init-maps.el b/lisp/ravi-init-maps.el
index 825bdc1..c96256a 100644
--- a/lisp/ravi-init-maps.el
+++ b/lisp/ravi-init-maps.el
@@ -54,7 +54,27 @@
("%" apply-operation-to-number-at-point :exit t)))
:ensure t)
-;; To do: launcher map, toggle map
+;; Combined launcher and toggle-maps
+(defhydra hydra-launch-toggle-map ()
+ "Launcher/toggle"
+
+ ;; Toggles
+ ("c" column-number-mode "column-number-mode")
+ ("e" toggle-debug-on-error "toggle-debug-on-error")
+ ("f" auto-fill-mode "auto-fill-mode")
+ ("l" toggle-truncate-lines "toggle-truncate-lines")
+ ("q" toggle-debug-on-quit "toggle-debug-on-quit")
+ ;; Generalized version of `read-only-mode'.
+ ("r" dired-toggle-read-only "dired-toggle-read-only")
+ ;(autoload 'dired-toggle-read-only "dired" nil t)
+ ("w" whitespace-mode "whitespace-mode")
+
+ ;; Launchers
+ ("P" package-list-packages "package-list-packages")
+ ("p" proced "proced")
+ ("d" ediff-buffers "ediff-buffers")
+ ("F" find-dired "find-dired"))
+(bind-key "M-g M-t" 'hydra-launch-toggle-map/body)
(provide 'ravi-init-maps)
;;; ravi-init-maps.el ends here