home

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit e89802b5c4c9fbdc1af993e23506c62c8d7c6c86
parent c353d668acfc664f9baeee17d925f3f6b858d04c
Author: Vincent Demeester <vincent@sbr.pm>
Date:   Mon, 19 Oct 2020 11:36:59 +0200

tools/emacs: better vc-mode in modeline…

… no need for the `Git` prefix…

Signed-off-by: Vincent Demeester <vincent@sbr.pm>

Diffstat:
Mtools/emacs/config/config-appearance.el | 6+++++-
1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/tools/emacs/config/config-appearance.el b/tools/emacs/config/config-appearance.el @@ -158,7 +158,11 @@ questions. Else use completion to select the tab to switch to." mode-line-end-spaces (list (propertize " " 'display '(space :align-to (- right 19))) 'display-time-string)) - + (defadvice vc-mode-line (after me/vc-mode-line () activate) + "Strip backend from the VC information." + (when (stringp vc-mode) + (let ((vc-text (replace-regexp-in-string "^ Git" "" vc-mode))) + (setq vc-mode vc-text)))) (moody-replace-mode-line-buffer-identification) (moody-replace-vc-mode))