1
0
Fork 0

fix(emacs): rebind <f8> to priime-split-terminal

Signed-off-by: Lucas Sta Maria <lucas@priime.dev>
This commit is contained in:
Lucas Sta Maria 2024-11-03 19:13:19 -05:00
parent 0e464c8584
commit 5f015ba4c9
No known key found for this signature in database
GPG key ID: F07FB16A826E3B47
2 changed files with 11 additions and 9 deletions

View file

@ -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)
("<f8>" . priime-split-terminal)))
(use-package rg :straight t)
(use-package anzu :straight t
:init

View file

@ -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)