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)
|
(write-file file-path)
|
||||||
(find-file (expand-file-name 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
|
(use-package projectile :straight t
|
||||||
:custom
|
:custom
|
||||||
(projectile-completion-system 'auto)
|
(projectile-completion-system 'auto)
|
||||||
|
@ -45,7 +54,8 @@
|
||||||
(use-package no-littering :straight t)
|
(use-package no-littering :straight t)
|
||||||
(use-package vterm :straight t
|
(use-package vterm :straight t
|
||||||
:custom (vterm-shell (or (executable-find "fish") shell-file-name))
|
: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 rg :straight t)
|
||||||
(use-package anzu :straight t
|
(use-package anzu :straight t
|
||||||
:init
|
:init
|
||||||
|
|
|
@ -31,14 +31,6 @@
|
||||||
(split-window-below)
|
(split-window-below)
|
||||||
(windmove-down))
|
(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 ()
|
(defun priime-scroll-up ()
|
||||||
"Scroll up granularly."
|
"Scroll up granularly."
|
||||||
(interactive)
|
(interactive)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue