更新projectile后 C-c p is undefined

今天更新的 随同更新了十几个包 大家遇到这问题了吗?

是的,都没有了,自己定义一下吧

你违反了先搜索后提问的规定

改成 C-c C-p 了,这样就还把 org-mode 的 org-previous-visible-heading 的快捷键给覆盖了。。。

我在 dotspacemacs/user-init 里重新给改回 C-c p 了,反正我又不用 projectile 的原生绑定

(setq projectile-keymap-prefix (kbd "C-c p"))

谢谢!projectile怎么这么任性?一言不合就改快捷键?

我连google都搜了

projectile自己绑定C-c开头的快捷键是违反惯例的:

Don’t define C-c letter as a key in Lisp programs. Sequences consisting of C-c and a letter (either upper or lower case) are reserved for users; they are the only sequences reserved for users, so do not block them. Changing all the Emacs major modes to respect this convention was a lot of work; abandoning this convention would make that work go to waste, and inconvenience users. Please comply with it.

Sequences consisting of C-c followed by a control character or a digit are reserved for major modes.

2 个赞