From 9cb1b120cba9540be2bc88fcb0a453a5cd895fbf Mon Sep 17 00:00:00 2001 From: Thanos Apollo Date: Sun, 5 Mar 2023 17:17:22 +0200 Subject: emacs: update vterm bindings and add multi-vterm configuration --- .emacs.d/init.el | 15 ++++++--------- emacs.org | 21 +++++++++------------ 2 files changed, 15 insertions(+), 21 deletions(-) diff --git a/.emacs.d/init.el b/.emacs.d/init.el index 9d7c76d..0f5c710 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -316,15 +316,12 @@ Contains the list of packages that need to be installed.") (add-hook 'dired-mode-hook 'all-the-icons-dired-mode) (use-package vterm + :ensure nil) + +(use-package multi-vterm :ensure nil :config - ;; Check if it's one of my guix systems to load from - ;; ~/.guix-profile. Otherwise we use /bin/zsh. - (if - (or (string= (system-name) "hephaestus") - (string= (system-name) "zeus")) - (setq vterm-shell "~/.guix-profile/bin/bash") - (setq vterm-shell "/bin/bash"))) + (setq multi-vterm-dedicated-window-height 25)) (use-package eshell :ensure nil @@ -632,7 +629,7 @@ you have the correctly set the OPENAI_API_KEY variable" (general-define-key "C-d" 'kill-region "C-k" 'copy-region-as-kill - "C-c v" 'vterm + "C-c v" 'multi-vterm-next "C-x 9" 'make-mini-buffer "C-c l e" 'apollo/emacs-keys ;;Change keyboard layouts/language @@ -646,7 +643,7 @@ you have the correctly set the OPENAI_API_KEY variable" (general-does "t" 'counsel-load-theme "l" 'display-line-numbers-mode - "v" 'multi-vterm-next + "v" 'multi-vterm "e" 'eshell "i" 'circe "c" 'apollo/center-buffer diff --git a/emacs.org b/emacs.org index a960f12..011cbb6 100755 --- a/emacs.org +++ b/emacs.org @@ -402,16 +402,13 @@ Hook with ~dired-mode~ * Terminals ** Vterm #+begin_src emacs-lisp -(use-package vterm - :ensure nil - :config - ;; Check if it's one of my guix systems to load from - ;; ~/.guix-profile. Otherwise we use /bin/zsh. - (if - (or (string= (system-name) "hephaestus") - (string= (system-name) "zeus")) - (setq vterm-shell "~/.guix-profile/bin/bash") - (setq vterm-shell "/bin/bash"))) + (use-package vterm + :ensure nil) + + (use-package multi-vterm + :ensure nil + :config + (setq multi-vterm-dedicated-window-height 25)) #+end_src ** Eshell #+begin_src emacs-lisp @@ -731,7 +728,7 @@ Hook with ~dired-mode~ (general-define-key "C-d" 'kill-region "C-k" 'copy-region-as-kill - "C-c v" 'vterm + "C-c v" 'multi-vterm-next "C-x 9" 'make-mini-buffer "C-c l e" 'apollo/emacs-keys ;;Change keyboard layouts/language @@ -745,7 +742,7 @@ Hook with ~dired-mode~ (general-does "t" 'counsel-load-theme "l" 'display-line-numbers-mode - "v" 'multi-vterm-next + "v" 'multi-vterm "e" 'eshell "i" 'circe "c" 'apollo/center-buffer -- cgit v1.2.3