Add hydra for basic gui stuff
This commit is contained in:
parent
4d272ffb4a
commit
b99d2dc5a7
1 changed files with 11 additions and 2 deletions
13
oni-gui.el
13
oni-gui.el
|
@ -4,8 +4,8 @@
|
||||||
|
|
||||||
;; Author: Tom Willemse <tom@ryuslash.org>
|
;; Author: Tom Willemse <tom@ryuslash.org>
|
||||||
;; Keywords: local
|
;; Keywords: local
|
||||||
;; Version: 2019.1016.232748
|
;; Version: 2020.0306.231839
|
||||||
;; Package-Requires: (oni-ui yoshi-theme diminish)
|
;; Package-Requires: (oni-ui oni-hydra yoshi-theme diminish)
|
||||||
|
|
||||||
;; This program is free software; you can redistribute it and/or modify
|
;; 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
|
;; it under the terms of the GNU General Public License as published by
|
||||||
|
@ -50,12 +50,21 @@
|
||||||
|
|
||||||
(diminish 'isearch-mode " ")
|
(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-type '(bar . 2))
|
||||||
(setq-default cursor-in-non-selected-windows 'box)
|
(setq-default cursor-in-non-selected-windows 'box)
|
||||||
|
|
||||||
(scroll-bar-mode -1)
|
(scroll-bar-mode -1)
|
||||||
|
|
||||||
(global-unset-key (kbd "C-z"))
|
(global-unset-key (kbd "C-z"))
|
||||||
|
(global-set-key (kbd "C-c c") 'oni-gui-hydra/body)
|
||||||
|
|
||||||
(load-theme 'yoshi :no-confirm)
|
(load-theme 'yoshi :no-confirm)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue