feat(emacs): Add project keybinds
This commit is contained in:
@@ -81,8 +81,8 @@
|
|||||||
:prefix-map 'syd-leader-project-map
|
:prefix-map 'syd-leader-project-map
|
||||||
"C" `("Compile project" . ,#'project-compile)
|
"C" `("Compile project" . ,#'project-compile)
|
||||||
"&" `("Async cmd in project root" . ,#'project-async-shell-command)
|
"&" `("Async cmd in project root" . ,#'project-async-shell-command)
|
||||||
"p" `("Switch project" . ,#'project-switch-project))
|
"p" `("Switch project" . ,#'project-switch-project)
|
||||||
"." `("Browse project from root" . ,#'project-root-find-file))
|
"." `("Browse project from root" . ,#'syd-project-root-find-file))
|
||||||
|
|
||||||
(general-def
|
(general-def
|
||||||
:prefix-map 'syd-leader-help-package-map
|
:prefix-map 'syd-leader-help-package-map
|
||||||
@@ -146,7 +146,8 @@
|
|||||||
"n" `("Notes" . ,syd-leader-notes-map)
|
"n" `("Notes" . ,syd-leader-notes-map)
|
||||||
"i" `("Insert" . ,syd-leader-insert-map)
|
"i" `("Insert" . ,syd-leader-insert-map)
|
||||||
"," `("Switch buffer in project" . ,#'consult-project-buffer)
|
"," `("Switch buffer in project" . ,#'consult-project-buffer)
|
||||||
"<" `("Switch buffer" . ,#'consult-buffer)))
|
"<" `("Switch buffer" . ,#'consult-buffer)
|
||||||
|
"/" `("Search project" . ,#'syd-project-search)))
|
||||||
|
|
||||||
(syd-keybinds-initialise)
|
(syd-keybinds-initialise)
|
||||||
|
|
||||||
|
|||||||
@@ -23,7 +23,7 @@
|
|||||||
(append (list command name)
|
(append (list command name)
|
||||||
(list (or key (funcall project-key command)))))))
|
(list (or key (funcall project-key command)))))))
|
||||||
(add-to-list 'project-switch-commands
|
(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
|
;; Projection provides a Projectile-like project management library atop
|
||||||
;; Emacs built-in project.el. It's more lightweight, while still featureful.
|
;; Emacs built-in project.el. It's more lightweight, while still featureful.
|
||||||
|
|||||||
Reference in New Issue
Block a user