Following the advice of Mastering Emacs I'm trying to use the project.el
package. My problem is that C-x p
isn't bound to the prefix keymap and I can't figure out how to bind it correctly.
I'm pretty sure I'm trying to get this part of the package to load: https://github.com/emacs-mirror/emacs/blob/master/lisp/progmodes/project.el#L618
I've tried this:
(use-package project
:bind-keymap ("C-x p" . project-prefix-map))
but I get a Wrong type argument: sequencep
I've tried bind-key
but I don't know what to put in for the COMMAND
argument so I tried this:
(bind-key "C-x p" project-prefix-map)
which is also wrong.
I'm running Emacs on MacOS. The Emacs version is GNU Emacs 27.1 (build 1, x86_64-apple-darwin19.6.0, NS appkit-1894.60 Version 10.15.7 (Build 19H15)) installed using macports.
;;;###autoload (define-key ctl-x-map "p" project-prefix-map)
: just get rid of the three semicolons and then reloadproject.el
.(define-key ctl-x-map "p" project-prefix-map)
to your init file anywhere after you(require 'project)
instead of changing the file.