~ruther/emacs.d

941f3c816519ed50b32e447872bb3537dadfbef5 — Rutherther 3 months ago 93dbc3e
feat: simplify keybindings
1 files changed, 16 insertions(+), 8 deletions(-)

M init.el
M init.el => init.el +16 -8
@@ 801,6 801,7 @@
     (project-dired "Dired" "d")
     (my/magit-current-window "Magit" "m"))) :general
  (my-leader
    "P" '(project-switch-project :wk "Switch project")
    "p" '(:keymap project-prefix-map :wk "Project"))
  :init
  (defun my/magit-current-window ()


@@ 1317,15 1318,22 @@
          "C-<return>" 'comint-send-input
          "N" 'evil-search-previous
          "C-n" 'evil-search-next)
  (my-local-leader agent-shell-viewport-edit-mode-map
    "o" 'agent-shell-other-buffer)
  (my-local-leader agent-shell-viewport-view-mode-map
    "o" 'agent-shell-other-buffer)
  (my-local-leader agent-shell-mode-map
    "o" 'agent-shell-other-buffer)
  (my-leader
    "A A" '(agent-shell :wk "Agent shell")
    "A a" '(agent-shell :wk "Agent shell")
    "A o" '(agent-shell-other-buffer :wk "Toggle shell")
    "A d" '(agent-shell-send-dwim :wk "Send DWIM")
    "A r" '(agent-shell-send-region :wk "Send region")
    "A s" '(agent-shell-send-screenshot :wk "Send screenshot")
    "A f" '(agent-shell-send-current-file :wk "Send current file")
    "A F" '(agent-shell-send-other-file :wk "Send other file"))
    "A" '(agent-shell :wk "Agent shell")
    ;; "A a" '(agent-shell :wk "Agent shell")
    ;; "A o" '(agent-shell-other-buffer :wk "Toggle shell")
    ;; "A d" '(agent-shell-send-dwim :wk "Send DWIM")
    ;; "A r" '(agent-shell-send-region :wk "Send region")
    ;; "A s" '(agent-shell-send-screenshot :wk "Send screenshot")
    ;; "A f" '(agent-shell-send-current-file :wk "Send current file")
    ;; "A F" '(agent-shell-send-other-file :wk "Send other file")
    )
  :custom
  ;; Usage
  (agent-shell-prefer-viewport-interaction t)