how to deactivate vc-git in GNU Emacs?

天大地大妈咪最大 提交于 2019-12-08 19:55:28

问题


I created a Git repository for the folder with my Emacs text files, then installed git.el and Magit.

Emacs seems to have slowed down a lot, and I keep seeing the message loading vc-git...done in the minibuffer.

Am I right in thinking that interacting with Git is what's slowing down Emacs?

I don't actually need to use Emacs to interact with Git, I usually just use GitHub anyway. I removed references to git.el and magit.el from my .emacs file, but I'm still getting the message.

How do I disable vc-git in Emacs so I can work quickly again?


回答1:


I keep this in my .emacs:

(setq vc-handled-backends ())

I'm sure there's a more elegant way to disable vc-git specifically, but since I never use version control through Emacs, it works for me.



来源:https://stackoverflow.com/questions/14904071/how-to-deactivate-vc-git-in-gnu-emacs

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!