feat(emacs): Add project keybinds

This commit is contained in:
Madeleine Sydney
2025-02-21 21:14:41 -07:00
parent 59430e9b65
commit 9cf1e48252
2 changed files with 5 additions and 4 deletions

View File

@@ -81,8 +81,8 @@
:prefix-map 'syd-leader-project-map
"C" `("Compile project" . ,#'project-compile)
"&" `("Async cmd in project root" . ,#'project-async-shell-command)
"p" `("Switch project" . ,#'project-switch-project))
"." `("Browse project from root" . ,#'project-root-find-file))
"p" `("Switch project" . ,#'project-switch-project)
"." `("Browse project from root" . ,#'syd-project-root-find-file))
(general-def
:prefix-map 'syd-leader-help-package-map
@@ -146,7 +146,8 @@
"n" `("Notes" . ,syd-leader-notes-map)
"i" `("Insert" . ,syd-leader-insert-map)
"," `("Switch buffer in project" . ,#'consult-project-buffer)
"<" `("Switch buffer" . ,#'consult-buffer)))
"<" `("Switch buffer" . ,#'consult-buffer)
"/" `("Search project" . ,#'syd-project-search)))
(syd-keybinds-initialise)

View File

@@ -23,7 +23,7 @@
(append (list command name)
(list (or key (funcall project-key command)))))))
(add-to-list 'project-switch-commands
(funcall switch-cmd #'project-root-find-file "Browse"))))
(funcall switch-cmd #'syd-project-root-find-file "Browse"))))
;; Projection provides a Projectile-like project management library atop
;; Emacs built-in project.el. It's more lightweight, while still featureful.