如何在GNU Emacs中停用vc-git? [英] how to deactivate vc-git in GNU Emacs?

查看:290
本文介绍了如何在GNU Emacs中停用vc-git?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用我的Emacs文本文件创建了一个Git存储库,然后安装了git.el和Magit。

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

Emacs似乎已经放慢了很多,我不断看到消息 loading vc-git ... done 在微型缓冲区中。

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

我正在考虑与Git进行交互是Emacs的放缓?

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

我实际上并不需要使用Emacs与Git进行交互,我通常只是使用GitHub。我从我的.emacs文件中删除了对git.el和magit.el的引用,但我仍然收到消息。

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.

如何在Emacs中禁用vc-git,以便我能再次快速工作?

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

推荐答案

我保留在我的 .emacs

(setq vc-handled-backends ())

我确定有一个更优雅的方式来禁用 vc-git ,但由于我从来没有通过Emacs使用版本控制,它的工作原理对我来说。

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.

这篇关于如何在GNU Emacs中停用vc-git?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆