Update hydras

This commit is contained in:
Maciej 2021-03-07 10:05:33 +02:00
parent 48991c2d8f
commit d1fb4a661c
Signed by: maciej
GPG key ID: 41D62D42D3B0D765
6 changed files with 71 additions and 77 deletions

View file

@ -24,16 +24,15 @@
;; Hydra
(defhydra my-clojure/context-hydra (:color teal :hint nil)
"
Clojure actions
^Cider^ ^Actions^
^^^^^^^^-----------------------------------------------------------------------
_j_: Jack in _t_: Run loaded test(s)
_f_: Format buffer
_l_: Load buffer
^ Clojure actions
^^^^^^^^--------------------------------------------------------------------------------------------
Buffer: _r_: Reload _f_: Format _l_: Load
Cider: _j_: Jack in _t_: Test
^^
"
("q" nil "cancel" :color blue)
("r" revert-buffer-no-confirm)
("j" cider-jack-in)
("f" cider-format-buffer)
("l" cider-load-buffer)

View file

@ -12,16 +12,15 @@
(defhydra my-elixir/context-hydra (:color teal :hint nil)
"
^Elixir actions^
^^^^^^^^-----------------------------------------------------------------------
_r_: Reload buffer _f_: Format buffer
_i_: Indent buffer _m_: iMenu
^ Elixir actions
^^^^^^^^--------------------------------------------------------------------------------------------
Buffer: _r_: Reload _f_: Format _i_: Indent
Other: _m_: iMenu
^^
"
("q" nil "cancel" :color blue)
("r" revert-buffer-no-confirm)
("i" indent-region)
("i" mark-and-indent-whole-buffer)
("f" elixir-format)
("m" lsp-ui-imenu))

View file

@ -2,6 +2,8 @@
;;; Commentary:
;;; Code:
(require 'icejam-pkg-hydra "$HOME/.emacs.d/pkg/hydra.el")
(use-package tuareg
:defer t
:straight t
@ -24,15 +26,16 @@
(defhydra my-ocaml/context-hydra (:color teal :hint nil)
"
OCaml actions
^OCaml^ ^Actions^
^^^^^^^^-----------------------------------------------------------------------
_f_: Format buffer
_o_: Update opam env
^ OCaml actions
^^^^^^^^--------------------------------------------------------------------------------------------
Buffer: _r_: Reload _f_: Format _i_: Indent
Other: _o_: Opam env
^^
"
("q" nil "cancel" :color blue)
("r" revert-buffer-no-confirm)
("i" mark-and-indent-whole-buffer)
("f" ocamlformat)
("o" tuareg-opam-update-env))