From e252c4420d1d0ab5625f193791cf4cff6ec724a3 Mon Sep 17 00:00:00 2001 From: Vincent Zhang Date: Fri, 4 Jan 2019 01:01:40 +0800 Subject: [PATCH] [Docs] FAQ: Why doesn't change of branch reflect in modeline. https://github.com/seagle0128/doom-modeline/issues/84 https://github.com/seagle0128/doom-modeline/issues/76 --- README.md | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 7c5d00c..e0471cb 100644 --- a/README.md +++ b/README.md @@ -188,8 +188,21 @@ Strongly recommend to use (setq find-file-visit-truename t) ``` - If the file is controlled by vc, refer to `vc-follow-symlinks`. + If the file is controlled by vc, refer to the documentation of + `vc-follow-symlinks`. 1. Can I add my mode-line segments myself? How to do that? Of course. Just add the segments into `global-mode-string`. + +1. Why doesn't change of branch reflect in modeline? + + Actually it's related to `magit` and `vc-mode`. + - Workaround: + - Revert the buffers manually. + - `(setq auto-revert-check-vc-info t)` brings the performance issue. + - Refer to: + - [The mode-line information isn’t always + up-to-date](https://magit.vc/manual/magit/The-mode_002dline-information-isn_0027t-always-up_002dto_002ddate.html) + - [Maybe provide an alternative to VC's mode-line + information](https://github.com/magit/magit/issues/2687)