我使用的是emacs,而不是sshfs和git存储库。我喜欢使用git命令行,因此对于这个项目,我不需要启用vc-git。如何防止.emacs命令加载vc-git?
发布于 2011-04-22 03:48:09
将其从find-file-hook中删除。这应该会禁用后端:
(remove-hook 'find-file-hook 'vc-find-file-hook)在上面的代码行之前,您可能需要一个(require 'vc)才能获得正确的时间。或者可能像这样包装它:
(eval-after-load "vc" '(remove-hook 'find-file-hook 'vc-find-file-hook))来选择合适的时机。
https://stackoverflow.com/questions/5748814
复制相似问题