Skip to content

Instantly share code, notes, and snippets.

@IanConnolly
Created February 3, 2017 20:48
Show Gist options
  • Save IanConnolly/f0286f7aaaeddef6ea2ce70d4290eaf6 to your computer and use it in GitHub Desktop.
Save IanConnolly/f0286f7aaaeddef6ea2ce70d4290eaf6 to your computer and use it in GitHub Desktop.
(defadvice vc-mode-line (after strip-backend () activate)
(when (stringp vc-mode)
(let ((noback (replace-regexp-in-string
(format "^ %s-" (vc-backend buffer-file-name))
" " vc-mode)))
(setq vc-mode noback))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment