aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorshoshin <shoshin@cicadas.surf>2022-09-14 21:28:41 -0500
committershoshin <shoshin@cicadas.surf>2022-09-14 21:28:41 -0500
commit639b5411045a408969c1af119e993f2846322ed2 (patch)
treeab4ac2a2b6c7f5cdfd8107579a2f6369f7f8d144
parent291c6c13e3b42d3a6d813ab6e60a8a911f6a1dcf (diff)
Fix: project prefix map [keybinding]
-rw-r--r--shoshimacs.el2
-rw-r--r--shoshimacs.org7
2 files changed, 9 insertions, 0 deletions
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