1
0
Fork 0

Add oni-hydra configuration, spruce up some hydras

This commit is contained in:
Tom Willemse 2020-03-05 22:50:18 -08:00
parent d4c7bb72e6
commit be0cc578b0
8 changed files with 78 additions and 24 deletions

View file

@ -4,8 +4,8 @@
;; Author: Tom Willemse <tom@ryuslash.org> ;; Author: Tom Willemse <tom@ryuslash.org>
;; Keywords: local ;; Keywords: local
;; Version: 2019.1210.225029 ;; Version: 2020.0305.222317
;; Package-Requires: (oni-company oni-fci hydra rainbow-mode yasnippet) ;; Package-Requires: (oni-company oni-fci oni-hydra rainbow-mode yasnippet)
;; 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

42
oni-hydra.el Normal file
View file

@ -0,0 +1,42 @@
;;; oni-hydra.el --- Configuration for using Hydra -*- lexical-binding: t; -*-
;; Copyright (C) 2020 Tom Willemse
;; Author: Tom Willemse <tom@ryuslash.org>
;; Keywords: local
;; Version: 2020.0305.224628
;; Package-Requires: (hydra posframe)
;; 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
;; the Free Software Foundation, either version 3 of the License, or
;; (at your option) any later version.
;; This program is distributed in the hope that it will be useful,
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
;; GNU General Public License for more details.
;; You should have received a copy of the GNU General Public License
;; along with this program. If not, see <https://www.gnu.org/licenses/>.
;;; Commentary:
;; Configuration for hydra. Set it up to use posframe instead of the default lv.
;;; Code:
(require 'hydra)
(setq hydra-hint-display-type 'posframe)
(plist-put hydra-posframe-show-params :poshandler
'posframe-poshandler-window-bottom-center)
(plist-put hydra-posframe-show-params :internal-border-width 15)
(plist-put hydra-posframe-show-params :internal-border-color "#222222")
(plist-put hydra-posframe-show-params :background-color "#222222")
;;;###autoload(with-eval-after-load 'hydra (require 'oni-hydra))
(provide 'oni-hydra)
;;; oni-hydra.el ends here

View file

@ -4,8 +4,8 @@
;; Author: Tom Willemse <tom@ryuslash.org> ;; Author: Tom Willemse <tom@ryuslash.org>
;; Keywords: local ;; Keywords: local
;; Version: 2020.0224.231056 ;; Version: 2020.0305.221151
;; Package-Requires: (ivy oni-prescient ivy-hydra diminish ivy-posframe ivy-prescient) ;; Package-Requires: (ivy oni-prescient oni-hydra ivy-hydra diminish ivy-posframe ivy-prescient)
;; 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

View file

@ -4,8 +4,8 @@
;; Author: Tom Willemse <tom@ryuslash.org> ;; Author: Tom Willemse <tom@ryuslash.org>
;; Keywords: local ;; Keywords: local
;; Version: 2019.1021.002901 ;; Version: 2020.0305.222356
;; Package-Requires: (oni-fci oni-data-dir oni-lsp lsp-java company-lsp hydra) ;; Package-Requires: (oni-fci oni-data-dir oni-lsp oni-hydra lsp-java company-lsp)
;; 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

View file

@ -4,8 +4,8 @@
;; Author: Tom Willemse <tom@ryuslash.org> ;; Author: Tom Willemse <tom@ryuslash.org>
;; Keywords: local ;; Keywords: local
;; Version: 2020.0203.214309 ;; Version: 2020.0305.221116
;; Package-Requires: (magit magit-popup hydra forge) ;; Package-Requires: (magit magit-popup oni-hydra forge)
;; 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
@ -40,10 +40,15 @@ Delete all other windows and then pass BUFFER and ALIST on to
(display-buffer-same-window buffer alist)) (display-buffer-same-window buffer alist))
;;;###autoload(autoload 'oni-hydra-magit/body "oni-magit") ;;;###autoload(autoload 'oni-hydra-magit/body "oni-magit")
(defhydra oni-hydra-magit (:color blue) (defhydra oni-hydra-magit (:color teal :hint nil)
"Magit" "
("s" magit-status "Status") ^Magit^
("i" magit-init "Init")) ^^---------
_s_: Status
_i_: Init
"
("s" magit-status)
("i" magit-init))
(setq magit-diff-refine-hunk 'all) (setq magit-diff-refine-hunk 'all)

View file

@ -4,8 +4,8 @@
;; Author: Tom Willemse <tom@ryuslash.org> ;; Author: Tom Willemse <tom@ryuslash.org>
;; Keywords: local ;; Keywords: local
;; Version: 2020.0203.221615 ;; Version: 2020.0305.224948
;; Package-Requires: (oni-yasnippet oni-alert org-plus-contrib org-bullets hydra) ;; Package-Requires: (oni-yasnippet oni-alert oni-hydra org-plus-contrib org-bullets)
;; 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
@ -164,12 +164,19 @@ After running it once remove it from `org-capture-after-finalize-hook'."
(org-set-tag-faces 'org-tag-faces org-tag-faces)) (org-set-tag-faces 'org-tag-faces org-tag-faces))
;;;###autoload(autoload 'oni-hydra-org/body "oni-org") ;;;###autoload(autoload 'oni-hydra-org/body "oni-org")
(defhydra oni-hydra-org (:color blue) (defhydra oni-hydra-org (:color teal :hint nil)
"Org" "
("l" org-store-link "Store link") ^Org^
("a" org-agenda "Agenda") ^^-----------------------
("c" org-capture "Capture") _a_: Show Agenda
("b" org-switchb "Switch to org buffer")) _c_: Capture new heading
_l_: Store link
_b_: Switch to org buffer
"
("l" org-store-link)
("a" org-agenda)
("c" org-capture)
("b" org-switchb))
(setq org-default-notes-file (setq org-default-notes-file
(oni-org-expand-to-home "documents/gtd/inbox.org")) (oni-org-expand-to-home "documents/gtd/inbox.org"))

View file

@ -4,8 +4,8 @@
;; Author: Tom Willemse <tom@ryuslash.org> ;; Author: Tom Willemse <tom@ryuslash.org>
;; Keywords: local ;; Keywords: local
;; Version: 2019.1210.224202 ;; Version: 2020.0305.222253
;; Package-Requires: (php-mode oni-yasnippet oni-flycheck oni-company oni-fci ggtags fic-mode hydra company-php phpcbf) ;; Package-Requires: (php-mode oni-yasnippet oni-flycheck oni-company oni-fci oni-hydra ggtags fic-mode company-php phpcbf)
;; 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

View file

@ -4,8 +4,8 @@
;; Author: Tom Willemse <tom@ryuslash.org> ;; Author: Tom Willemse <tom@ryuslash.org>
;; Keywords: local ;; Keywords: local
;; Version: 2019.1210.230756 ;; Version: 2020.0305.222235
;; Package-Requires: (oni-yasnippet oni-company company-jedi oni-fci oni-flycheck rainbow-delimiters reformatter traad hydra) ;; Package-Requires: (oni-yasnippet oni-company company-jedi oni-fci oni-flycheck oni-hydra rainbow-delimiters reformatter traad)
;; 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