From 5f015ba4c9000bde831906696558d1132648d434 Mon Sep 17 00:00:00 2001 From: Lucas Sta Maria Date: Sun, 3 Nov 2024 19:13:19 -0500 Subject: [PATCH] fix(emacs): rebind `` to `priime-split-terminal` Signed-off-by: Lucas Sta Maria --- .emacs.d/include/priime-convenience.el | 12 +++++++++++- .emacs.d/include/priime-general.el | 8 -------- 2 files changed, 11 insertions(+), 9 deletions(-) diff --git a/.emacs.d/include/priime-convenience.el b/.emacs.d/include/priime-convenience.el index a59edd5..373ab45 100644 --- a/.emacs.d/include/priime-convenience.el +++ b/.emacs.d/include/priime-convenience.el @@ -26,6 +26,15 @@ (write-file file-path) (find-file (expand-file-name file-path)))) +(defun priime-split-terminal () + "Split a terminal on the right and move to it." + (interactive) + (priime-split-right) + (if (projectile-project-p) + (projectile-run-vterm) + (vterm)) + (balance-windows)) + (use-package projectile :straight t :custom (projectile-completion-system 'auto) @@ -45,7 +54,8 @@ (use-package no-littering :straight t) (use-package vterm :straight t :custom (vterm-shell (or (executable-find "fish") shell-file-name)) - :bind (("C-c v" . #'vterm))) + :bind (("C-c v" . vterm) + ("" . priime-split-terminal))) (use-package rg :straight t) (use-package anzu :straight t :init diff --git a/.emacs.d/include/priime-general.el b/.emacs.d/include/priime-general.el index 7891948..271d3f5 100644 --- a/.emacs.d/include/priime-general.el +++ b/.emacs.d/include/priime-general.el @@ -31,14 +31,6 @@ (split-window-below) (windmove-down)) -(defun priime-split-terminal () - "Split a terminal on the right and move to it." - (priime-split-right) - (if (projectile-project-p) - (projectile-run-vterm) - (vterm)) - (balance-windows)) - (defun priime-scroll-up () "Scroll up granularly." (interactive)