fix(emacs): rebind <f8>
to priime-split-terminal
Signed-off-by: Lucas Sta Maria <lucas@priime.dev>
This commit is contained in:
parent
0e464c8584
commit
5f015ba4c9
2 changed files with 11 additions and 9 deletions
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue