From 639b5411045a408969c1af119e993f2846322ed2 Mon Sep 17 00:00:00 2001 From: shoshin Date: Wed, 14 Sep 2022 21:28:41 -0500 Subject: Fix: project prefix map [keybinding] --- shoshimacs.el | 2 ++ shoshimacs.org | 7 +++++++ 2 files changed, 9 insertions(+) diff --git a/shoshimacs.el b/shoshimacs.el index 4a339d8..8462e03 100644 --- a/shoshimacs.el +++ b/shoshimacs.el @@ -194,6 +194,8 @@ (define-key flymake-mode-map (kbd "M-p") 'flymake-goto-prev-error)) ;;; Projects +(define-key my-key-map "p" project-prefix-map) + (package-install 'magit) ;; Applications diff --git a/shoshimacs.org b/shoshimacs.org index 207f938..b627513 100644 --- a/shoshimacs.org +++ b/shoshimacs.org @@ -738,6 +738,13 @@ elpa. however, at the moment i must install from source: use the built in ~project.el~ api for their features. I've got the ~project-prefix-map~ on the key =p= in [[*with-map-defkey][my-key-map]]. +Interestingly, you have to assign the /actual/ prefix map, not the +symbol to the keybinding. My key macro doesn't evaluate it so it doesn't +quite work. + +#+begin_src emacs-lisp + (define-key my-key-map "p" project-prefix-map) +#+end_src ** version control *** magit -- cgit v1.2.3