Add gleam lang support
This commit is contained in:
parent
d1fb4a661c
commit
da8b5653c6
5 changed files with 62 additions and 13 deletions
47
pkg/hydra.el
47
pkg/hydra.el
|
|
@ -14,7 +14,7 @@
|
|||
:straight t
|
||||
:defer t
|
||||
:config
|
||||
(defhydra hydra-file-switcher-menu (:color teal :hint nil)
|
||||
(defhydra +hydra-file-switcher-menu (:color teal :hint nil)
|
||||
"
|
||||
^ General actions
|
||||
^^^^^^^^--------------------------------------------------------------------------------------------
|
||||
|
|
@ -57,7 +57,7 @@
|
|||
("C" magit-checkout)
|
||||
("M" magit-blame))
|
||||
|
||||
(defhydra hydra-programming-menu (:color teal :hint nil)
|
||||
(defhydra +hydra-programming-menu (:color teal :hint nil)
|
||||
"
|
||||
^ Code actions
|
||||
^^^^^^^^--------------------------------------------------------------------------------------------
|
||||
|
|
@ -78,7 +78,7 @@ Find: _s_: Swiper _u_: Undo tree
|
|||
("y" company-yasnippet)
|
||||
("m" company-complete))
|
||||
|
||||
(defhydra hydra-window-menu (:color teal :hint nil)
|
||||
(defhydra +hydra-window-menu (:color teal :hint nil)
|
||||
"
|
||||
^ Buffer actions
|
||||
^^^^^^^^--------------------------------------------------------------------------------------------
|
||||
|
|
@ -98,7 +98,7 @@ Split: _h_: Horizontally _v_: Vertically
|
|||
("<up>" windmove-up)
|
||||
("<down>" windmove-down))
|
||||
|
||||
(defhydra hydra-language-context-menu (:color teal :hint nil)
|
||||
(defhydra +hydra-language-context-menu (:color teal :hint nil)
|
||||
"
|
||||
^ Language-specific actions
|
||||
^^^^^^^^--------------------------------------------------------------------------------------------
|
||||
|
|
@ -114,19 +114,42 @@ Other: _m_: iMenu
|
|||
("f" lsp-format-buffer)
|
||||
("m" lsp-ui-imenu))
|
||||
|
||||
(defhydra hydra-move-menu (:color teal)
|
||||
(defhydra +hydra-move-menu (:color teal)
|
||||
"Buffer history"
|
||||
("<left>" previous-buffer "Previous buffer")
|
||||
("<right>" next-buffer "Next buffer")
|
||||
("[" previous-buffer "Previous buffer")
|
||||
("]" next-buffer "Next buffer")
|
||||
("q" cancel "quit"))
|
||||
|
||||
:bind ("C-c p" . hydra-file-switcher-menu/body)
|
||||
("C-c c" . hydra-programming-menu/body)
|
||||
("C-c w" . hydra-window-menu/body)
|
||||
("C-c s" . hydra-move-menu/body)
|
||||
("C-c l" . hydra-language-context-menu/body))
|
||||
(defhydra +hydra-bufmove (:color teal :hint nil)
|
||||
"
|
||||
^ Move current buffer
|
||||
^^^^^^^^--------------------------------------------------------------------------------------------
|
||||
^ _{_: Up
|
||||
^_[_: Left _]_: Right
|
||||
^ _{_: Down
|
||||
^^
|
||||
"
|
||||
("[" buf-move-left)
|
||||
("]" buf-move-right)
|
||||
("{" buf-move-up)
|
||||
("}" buf-move-down)
|
||||
("q" cancel "quit"))
|
||||
|
||||
(defhydra +hydra-font-menu (:color teal)
|
||||
"Buffer history"
|
||||
("i" (text-scale-increase 1) "Bigger font in this buffer")
|
||||
("d" (text-scale-decrease 1) "Smaller font in this buffer")
|
||||
("r" (text-scale-adjust 0) "Reset font in this buffer")
|
||||
("R" set-font-to-screen "Reload font to screen")
|
||||
("q" cancel "quit"))
|
||||
|
||||
:bind ("C-c p" . +hydra-file-switcher-menu/body)
|
||||
("C-c c" . +hydra-programming-menu/body)
|
||||
("C-c w" . +hydra-window-menu/body)
|
||||
("C-c s" . +hydra-move-menu/body)
|
||||
("C-c f" . +hydra-font-menu/body)
|
||||
("C-c m" . +hydra-bufmove/body)
|
||||
("C-c l" . +hydra-language-context-menu/body))
|
||||
|
||||
(provide 'icejam-pkg-hydra)
|
||||
;;; hydra.el ends here
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue