如何在emacs中禁用vc-git? [英] How does one disable vc-git in emacs?
本文介绍了如何在emacs中禁用vc-git?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
.emacs
命令加载vc-git?解决方案
这应该禁用后端:
(remove-hook'find-file-hooks'vc-find-file -hook)
您可能需要一个(require'vc)
之前上线才能得到正确的时机。或者也可以这样包装:
(eval-after-loadvc'(remove-hook'find-file-钩子'vc-find-file-hook))
以获得正确的时间。
I'm using emacs over sshfs and a git repository. I enjoy using the git command line and so for this project I do not need vc-git enabled. How do I prevent the loading of vc-git by a .emacs
command?
解决方案
This should disable the backend:
(remove-hook 'find-file-hooks 'vc-find-file-hook)
you might need a (require 'vc)
before the above line to get the timing right. Or perhaps wrap it like so:
(eval-after-load "vc" '(remove-hook 'find-file-hooks 'vc-find-file-hook))
to get the timing right.
这篇关于如何在emacs中禁用vc-git?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文