commit 003ed54a0e10999e4f1fa3a887417b748b3aff4e
parent c0e02c8b95741ab8a783186ed8f8e23e6c8d23b3
Author: Vincent Demeester <vincent@sbr.pm>
Date: Tue, 17 Nov 2020 11:37:56 +0100
tools/emacs: configure multi-vterm
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
Diffstat:
2 files changed, 9 insertions(+), 1 deletion(-)
diff --git a/tools/emacs/config/config-shells.el b/tools/emacs/config/config-shells.el
@@ -260,7 +260,7 @@ using either KUBECONFIG or ~/.kube/config"
(use-package vterm
:commands (vterm vde/vterm-toggle)
- :bind (("C-c t t" . vde/vterm-toggle)
+ :bind (("C-c t v" . vde/vterm-toggle)
("C-c t r" . vde/run-in-vterm))
:custom
(vterm-kill-buffer-on-exit t)
@@ -270,6 +270,7 @@ using either KUBECONFIG or ~/.kube/config"
If the `tramp-methods' entry does not exist, return NIL."
(let ((entry (assoc param (assoc method tramp-methods))))
(when entry (cadr entry))))
+ (add-hook 'vterm-set-title-functions 'vterm--rename-buffer-as-title)
;; TODO: hook into projectile-run-vterm instead
;; Also, look into vterm-toggle way of doing things.. I thing it is trying to be too smart about it..
;; I prefer an easy projectile integration (or projects integration)
@@ -344,6 +345,12 @@ toggle, the current window configuration is saved in a register."
(vterm-send-string (read-string "Command: "))
(vterm-send-C-j))))
+(use-package multi-vterm
+ :commands (multi-vterm multi-vterm-projectile multi-vterm-dedicated-toggle)
+ :bind (("C-c t t" . multi-vterm-dedicated-toggle)
+ ("C-c t p" . multi-vterm-prev)
+ ("C-c t n" . multi-vterm-next)
+ ("C-c t s" . multi-vterm)))
;; for fish in ansi-term
(add-hook 'term-mode-hook 'toggle-truncate-lines)
diff --git a/users/vincent/dev/emacs.nix b/users/vincent/dev/emacs.nix
@@ -76,6 +76,7 @@ let
minions
modus-operandi-theme
moody
+ multi-vterm
mwim
nix-buffer
nix-mode