Variable: projectile-keymap-prefix

projectile-keymap-prefix is a customizable variable defined in projectile.el.

Value

nil

Documentation

The key sequence projectile-command-map(var)/projectile-command-map(fun) is bound to, if any.

A key sequence in the form kbd returns, e.g. (kbd "C-c p"). There is no prefix by default - Projectile binds none of its commands until you ask for it.

The value is read once, when projectile-mode-map is built as Projectile loads, so it has to be set before that - which rules out Customize and setopt. Binding the map directly works whenever:

  (define-key projectile-mode-map (kbd "C-c p") 'projectile-command-map)

This variable was added, or its default value changed, in projectile version 0.7.

Source Code

;; Defined in ~/.emacs.d/elpa/projectile-20260820.1509/projectile.el
(defcustom projectile-keymap-prefix nil
  "The key sequence `projectile-command-map' is bound to, if any.

A key sequence in the form `kbd' returns, e.g. (kbd \"C-c p\").  There
is no prefix by default - Projectile binds none of its commands until
you ask for it.

The value is read once, when `projectile-mode-map' is built as
Projectile loads, so it has to be set before that - which rules out
Customize and `setopt'.  Binding the map directly works whenever:

  (define-key projectile-mode-map (kbd \"C-c p\") \\='projectile-command-map)"
  :group 'projectile
  :type '(choice (const :tag "None" nil)
                 (key-sequence :tag "Prefix"))
  :package-version '(projectile . "0.7"))