Clean up hydras and update packages
This commit is contained in:
parent
c9db32bd03
commit
aa284f70ae
13 changed files with 184 additions and 181 deletions
|
|
@ -9,10 +9,6 @@
|
|||
;; Avy is a navigation manager.
|
||||
|
||||
;;; Code:
|
||||
|
||||
(use-package avy
|
||||
:straight t
|
||||
:defer t)
|
||||
|
||||
(use-package avy :straight t :defer t)
|
||||
(provide '+custom-pkg-avy)
|
||||
;;; avy.el ends here
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@
|
|||
(defhydra +hydra-deft-menu (:color teal)
|
||||
"Start Deft"
|
||||
("d" deft "Deft")
|
||||
("q" cancel "quit"))
|
||||
("q" nil "quit"))
|
||||
|
||||
(define-key +custom-keys-mode-map (kbd "C-c d") '+hydra-deft-menu/body)
|
||||
|
||||
|
|
|
|||
131
pkg/hydra.el
131
pkg/hydra.el
|
|
@ -14,42 +14,37 @@
|
|||
:straight t
|
||||
:defer t
|
||||
:config
|
||||
(defhydra +hydra-file-switcher-menu (:color teal :hint nil)
|
||||
(defhydra +hydra-project-menu (:color teal :hint nil)
|
||||
"
|
||||
^ General actions
|
||||
^^^^^^^^--------------------------------------------------------------------------------------------
|
||||
^Ivy: _a_: Grep in buffer _B_: Buffer list _t_: Find file
|
||||
^Avy: _w_: Goto word _l_: Goto line _:_: Goto char
|
||||
^
|
||||
^Perspective: _p_: Switch perspective _b_: Buffers in perspective _K_: Kill perspective
|
||||
^Projectile: _s_: Switch project _f_: Find file in project _g_: Grep in project
|
||||
^ _c_: Invalidate cache _n_: New project
|
||||
^Magit: _m_: Git status _C_: Git checkout _M_: Git blame
|
||||
^
|
||||
^LISP: _i_: Console _e_: Eval region
|
||||
^Other: _d_: Deft _T_: Speed type
|
||||
^ Projectile Ivy Magit
|
||||
^────────────────────────────────────────────────────────────────────────────────
|
||||
^ _s_: Switch project _a_: Grep in buffer _m_: Git status
|
||||
^ _f_: Find file in project _b_: Buffer list _C_: Git checkout
|
||||
^ _g_: Grep in project _t_: Find file _M_: Git blame
|
||||
^ _c_: Invalidate cache
|
||||
^ _n_: New project
|
||||
|
||||
^ LISP Other
|
||||
^────────────────────────────────────────────────────────────────────────────────
|
||||
^ _i_: Console _d_: Deft
|
||||
^ _e_: Eval region _T_: Speed type
|
||||
^
|
||||
"
|
||||
|
||||
("q" nil "cancel" :color blue)
|
||||
|
||||
("a" counsel-rg)
|
||||
("B" ibuffer)
|
||||
("b" ibuffer)
|
||||
("t" counsel-find-file)
|
||||
("d" deft)
|
||||
("w" avy-goto-word-0)
|
||||
("l" avy-goto-line)
|
||||
(":" avy-goto-char)
|
||||
|
||||
("p" persp-switch)
|
||||
("b" persp-ibuffer)
|
||||
("K" persp-kill)
|
||||
|
||||
("s" counsel-projectile-switch-project)
|
||||
("f" counsel-projectile-find-file)
|
||||
("g" counsel-projectile-rg)
|
||||
("c" projectile-invalidate-cache)
|
||||
("n" projectile-add-known-project)
|
||||
|
||||
("i" ielm)
|
||||
("T" speed-type-text)
|
||||
("e" eval-region)
|
||||
|
|
@ -58,13 +53,15 @@
|
|||
("C" magit-checkout)
|
||||
("M" magit-blame))
|
||||
|
||||
(defhydra +hydra-programming-menu (:color teal :hint nil)
|
||||
(defhydra +hydra-code-menu (:color teal :hint nil)
|
||||
"
|
||||
^ Code actions
|
||||
^^^^^^^^------------------------------------------------------------------------
|
||||
Manipulate: _c_: Toggle comment _r_: Replace _i_: Indent _a_: Align
|
||||
Complete: _y_: Snippet _m_: Any (Company)
|
||||
Find: _s_: Swiper _u_: Undo tree
|
||||
^
|
||||
^ Manipulate Complete Find
|
||||
^────────────────────────────────────────────────────────────────────────────────
|
||||
^ _c_: Toggle comment _y_: Snippet _s_: Swiper
|
||||
^ _r_: Replace _m_: Any (Company) _u_: Undo tree
|
||||
^ _i_: Indent
|
||||
^ _a_: Align
|
||||
^
|
||||
"
|
||||
("q" nil "cancel" :color blue)
|
||||
|
|
@ -81,11 +78,12 @@ Find: _s_: Swiper _u_: Undo tree
|
|||
|
||||
(defhydra +hydra-window-menu (:color teal :hint nil)
|
||||
"
|
||||
^ Buffer actions
|
||||
^^^^^^^^------------------------------------------------------------------------
|
||||
Move: _<left>_: Left _<right>_: Right _<up>_: Up _<down>_: Down
|
||||
Split: _h_: Horizontally _v_: Vertically
|
||||
_k_: Kill Buffer
|
||||
^ Move Split Kill
|
||||
^────────────────────────────────────────────────────────────────────────────────
|
||||
^ _<left>_: Left _h_: Horizontally
|
||||
^ _<right>_: Right _v_: Vertically
|
||||
^ _<up>_: Up
|
||||
^ _<down>_: Down _k_: Kill Buffer
|
||||
^
|
||||
"
|
||||
("q" nil "cancel" :color blue)
|
||||
|
|
@ -101,11 +99,13 @@ Split: _h_: Horizontally _v_: Vertically
|
|||
|
||||
(defhydra +hydra-language-context-menu (:color teal :hint nil)
|
||||
"
|
||||
^ Language-specific actions
|
||||
^^^^^^^^------------------------------------------------------------------------
|
||||
Buffer: _r_: Reload _f_: Format _i_: Indent
|
||||
Other: _m_: iMenu
|
||||
^^
|
||||
^
|
||||
^ Buffer Other
|
||||
^────────────────────────────────────────────────────────────────────────────────
|
||||
^ _r_: Reload _m_: iMenu
|
||||
^ _f_: Format
|
||||
^ _i_: Indent
|
||||
^
|
||||
"
|
||||
("q" nil "cancel" :color blue)
|
||||
|
||||
|
|
@ -115,19 +115,22 @@ Other: _m_: iMenu
|
|||
("f" lsp-format-buffer)
|
||||
("m" lsp-ui-imenu))
|
||||
|
||||
(defhydra +hydra-move-menu (:color teal)
|
||||
(defhydra +hydra-history-menu (:color teal)
|
||||
"Buffer history"
|
||||
("[" previous-buffer "Previous buffer")
|
||||
("]" next-buffer "Next buffer")
|
||||
("q" nil "cancel" :color blue))
|
||||
|
||||
(defhydra +hydra-bufmove (:color teal :hint nil)
|
||||
(defhydra +hydra-move-menu (:color teal :hint nil)
|
||||
"
|
||||
^ Move in places
|
||||
^^^^^^^^------------------------------------------------------------------------
|
||||
^ Move this buffer: _{_: Up _[_: Left _]_: Right _{_: Down
|
||||
^ Jump to: _w_: Word _c_: Character _l_: Line
|
||||
^^
|
||||
^
|
||||
^ Move this buffer Jump to
|
||||
^────────────────────────────────────────────────────────────────────────────────
|
||||
^ _{_: Up _w_: Word
|
||||
^ _[_: Left _c_: Character
|
||||
^ _]_: Right _l_: Line
|
||||
^ _{_: Down
|
||||
^
|
||||
"
|
||||
("[" buf-move-left)
|
||||
("]" buf-move-right)
|
||||
|
|
@ -136,15 +139,17 @@ Other: _m_: iMenu
|
|||
("w" avy-goto-word-0)
|
||||
("l" avy-goto-line)
|
||||
("c" avy-goto-char)
|
||||
("q" cancel "quit"))
|
||||
("q" nil "quit"))
|
||||
|
||||
(defhydra +hydra-font-menu (:color teal :hint nil)
|
||||
"
|
||||
^ Fonts
|
||||
^^^^^^^^------------------------------------------------------------------------
|
||||
^Everywhere: _s_: Set size _R_: Reset to default
|
||||
^In this buffer: _i_: Bigger _d_: Smaller _r_: Reset
|
||||
^^
|
||||
^
|
||||
^ Everywhere In this buffer
|
||||
^────────────────────────────────────────────────────────────────────────────────
|
||||
^ _s_: Set size _i_: Bigger
|
||||
^ _R_: Reset to default _d_: Smaller
|
||||
^^^ _r_: Reset
|
||||
^
|
||||
"
|
||||
("i" (text-scale-increase 1))
|
||||
("d" (text-scale-decrease 1))
|
||||
|
|
@ -153,12 +158,32 @@ Other: _m_: iMenu
|
|||
("s" set-font-size)
|
||||
("q" nil "cancel" :color blue))
|
||||
|
||||
:bind ("C-c p" . +hydra-file-switcher-menu/body)
|
||||
("C-c c" . +hydra-programming-menu/body)
|
||||
(defhydra +hydra-of-hydras (:color teal :hint nil)
|
||||
"
|
||||
^
|
||||
^ Hydras
|
||||
^────────────────────────────────────────────────────────────────────────────────
|
||||
^ _p_: Projects^^^ _h_: History
|
||||
^ _c_: Code^^^ _m_: Move
|
||||
^ _l_: Language^^^ _f_: Fonts
|
||||
^
|
||||
"
|
||||
("p" +hydra-project-menu/body)
|
||||
("c" +hydra-code-menu/body)
|
||||
("w" +hydra-window-menu/body)
|
||||
("h" +hydra-history-menu/body)
|
||||
("f" +hydra-font-menu/body)
|
||||
("m" +hydra-move-menu/body)
|
||||
("l" +hydra-language-context-menu/body)
|
||||
("q" nil "cancel"))
|
||||
|
||||
:bind ("C-c p" . +hydra-project-menu/body)
|
||||
("C-c h" . +hydra-of-hydras/body)
|
||||
("C-c c" . +hydra-code-menu/body)
|
||||
("C-c w" . +hydra-window-menu/body)
|
||||
("C-c s" . +hydra-move-menu/body)
|
||||
("C-c s" . +hydra-history-menu/body)
|
||||
("C-c f" . +hydra-font-menu/body)
|
||||
("C-c m" . +hydra-bufmove/body)
|
||||
("C-c m" . +hydra-move-menu/body)
|
||||
("C-c l" . +hydra-language-context-menu/body))
|
||||
|
||||
(provide '+custom-pkg-hydra)
|
||||
|
|
|
|||
33
pkg/persp.el
33
pkg/persp.el
|
|
@ -1,33 +0,0 @@
|
|||
;;; pkg/persp.el --- summary
|
||||
|
||||
;; Author: Maciej Szlosarczyk
|
||||
;; Maintainer: Maciej Szlosarczyk
|
||||
;; Version: 0.1-snapshot
|
||||
|
||||
;;; Commentary:
|
||||
|
||||
;; Perspectives
|
||||
|
||||
;;; Code:
|
||||
(use-package perspective
|
||||
:straight t
|
||||
:config (persp-mode)
|
||||
(unbind-key "C-x x" persp-mode-map)
|
||||
(unbind-key "C-x x C-l" persp-mode-map)
|
||||
(unbind-key "C-x x C-s" persp-mode-map)
|
||||
(unbind-key "C-x x A" persp-mode-map)
|
||||
(unbind-key "C-x x a" persp-mode-map)
|
||||
(unbind-key "C-x x b" persp-mode-map)
|
||||
(unbind-key "C-x x c" persp-mode-map)
|
||||
(unbind-key "C-x x i" persp-mode-map)
|
||||
(unbind-key "C-x x k" persp-mode-map)
|
||||
(unbind-key "C-x x n" persp-mode-map)
|
||||
(unbind-key "C-x x p" persp-mode-map)
|
||||
(unbind-key "C-x x r" persp-mode-map)
|
||||
(unbind-key "C-x x s" persp-mode-map)
|
||||
(unbind-key "C-x x <left>" persp-mode-map)
|
||||
(unbind-key "C-x x <right>" persp-mode-map)
|
||||
(unbind-key "C-x x C-x x" persp-mode-map))
|
||||
|
||||
(provide '+custom-pkg-persp)
|
||||
;;; persp.el ends here
|
||||
Loading…
Add table
Add a link
Reference in a new issue