From b0a0f91c8493c18b2570a19ab485061ba5861240 Mon Sep 17 00:00:00 2001 From: Christopher James Hayward Date: Sun, 8 Oct 2023 22:46:12 -0400 Subject: [PATCH] Add multi-vterm --- README.org | 17 +++++++++++++++-- modules/emacs.nix | 1 + 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/README.org b/README.org index 4a5932b..012c407 100644 --- a/README.org +++ b/README.org @@ -1586,6 +1586,10 @@ epkgs.general ;; Add keybindings for toggles / tweaks. (dotfiles/leader "t" '(:ignore t :which-key "Toggle / Tweak")) + +;; Add keybinding to navigate to scratch buffer. +(dotfiles/leader + "s" '((lambda () (interactive) (switch-to-buffer "*scratch*")) :which-key "Scratch")) #+END_SRC *** Which Key @@ -1748,13 +1752,22 @@ epkgs.eshell-prompt-extras #+NAME: emacs-vterm-package #+BEGIN_SRC nix epkgs.vterm +epkgs.multi-vterm #+END_SRC #+NAME: emacs-vterm-elisp #+BEGIN_SRC emacs-lisp +;; Set the dedicated terminal height. +(setq multi-vterm-dedicated-window-height-percent 30) + ;; Add keybindings for interacting with the shell(s). (dotfiles/leader - "v" '(vterm :which-key "VTerm")) + "v" '(:ignore t :which-key "VTerm") + "vn" '(multi-vterm :which-key "VTerm") + "vl" '(multi-vterm-next :which-key "Next") + "vh" '(multi-vterm-prev :which-key "Previous") + "vp" '(multi-vterm-project :which-key "Project") + "vv" '(multi-vterm-dedicated-toggle :which-key "Dedicated")) #+END_SRC *** Magit @@ -2482,7 +2495,7 @@ epkgs.projectile *** Electric Pair -#+NAME: electric-pair-elisp +#+NAME: emacs-electric-pair-elisp #+BEGIN_SRC emacs-lisp ;; Enable smart parenthesis. (electric-pair-mode 1) diff --git a/modules/emacs.nix b/modules/emacs.nix index fe707b9..94ee5a3 100644 --- a/modules/emacs.nix +++ b/modules/emacs.nix @@ -41,6 +41,7 @@ let epkgs.emojify epkgs.eshell-prompt-extras epkgs.vterm + epkgs.multi-vterm epkgs.magit epkgs.hydra epkgs.ligature