From 0fc780db992ce867f018e0c527e4d9a01e67a517 Mon Sep 17 00:00:00 2001 From: Raul Benencia Date: Fri, 7 Oct 2022 16:28:39 -0700 Subject: emacs: multi-vterm support --- .emacs.local.d/modes/hydra.el | 13 +++++++++++++ .emacs.local.d/modes/vterm.el | 1 + 2 files changed, 14 insertions(+) create mode 100644 .emacs.local.d/modes/vterm.el (limited to '.emacs.local.d/modes') diff --git a/.emacs.local.d/modes/hydra.el b/.emacs.local.d/modes/hydra.el index 139c2c3..cf86a25 100644 --- a/.emacs.local.d/modes/hydra.el +++ b/.emacs.local.d/modes/hydra.el @@ -81,4 +81,17 @@ _s-f_: file _a_: ag _i_: Ibuffer _c_: cache ("=" gofmt :exit t) ("c" go-coverage :exit t)) +;; vterm +(defhydra hydra-vterm () + "zoom" + ("t" multi-vterm "Open a terminal" :exit t) + ("d" multi-vterm-dedicated-open "Dedicated" :exit t) + ("p" multi-vterm-prev "Previous terminal") + ("n" multi-vterm-next "Next terminal") + ("r" multi-vterm-rename-buffer "Rename buffer" :exit t) + ) + +(global-set-key (kbd "C-c t") 'hydra-vterm/body) + + (global-set-key (kbd "C-c m") 'hydra-go/body) diff --git a/.emacs.local.d/modes/vterm.el b/.emacs.local.d/modes/vterm.el new file mode 100644 index 0000000..edc3daa --- /dev/null +++ b/.emacs.local.d/modes/vterm.el @@ -0,0 +1 @@ +(use-package multi-vterm :ensure t) -- cgit v1.2.3