aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Tom Willemse2020-03-06 23:19:24 -0800
committerGravatar Tom Willemse2020-03-06 23:19:24 -0800
commitb99d2dc5a7c8552a93e4b63c0ef03316b050ddc5 (patch)
treefdf4e85f47b30473ede2a3ad92af1acc9842912d
parent4d272ffb4abced360622418c576023fc421694e1 (diff)
downloademacs-config-b99d2dc5a7c8552a93e4b63c0ef03316b050ddc5.tar.gz
emacs-config-b99d2dc5a7c8552a93e4b63c0ef03316b050ddc5.zip
Add hydra for basic gui stuff
-rw-r--r--oni-gui.el13
1 files changed, 11 insertions, 2 deletions
diff --git a/oni-gui.el b/oni-gui.el
index 59050dd..e04e944 100644
--- a/oni-gui.el
+++ b/oni-gui.el
@@ -4,8 +4,8 @@
;; Author: Tom Willemse <tom@ryuslash.org>
;; Keywords: local
-;; Version: 2019.1016.232748
-;; Package-Requires: (oni-ui yoshi-theme diminish)
+;; Version: 2020.0306.231839
+;; Package-Requires: (oni-ui oni-hydra yoshi-theme diminish)
;; This program is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
@@ -50,12 +50,21 @@
(diminish 'isearch-mode " ")
+(defhydra oni-gui-hydra (:color teal :hint nil)
+ "
+^Buffer^
+^^----------
+_br_: Revert
+"
+ ("br" (revert-buffer nil t)))
+
(setq-default cursor-type '(bar . 2))
(setq-default cursor-in-non-selected-windows 'box)
(scroll-bar-mode -1)
(global-unset-key (kbd "C-z"))
+(global-set-key (kbd "C-c c") 'oni-gui-hydra/body)
(load-theme 'yoshi :no-confirm)