branch: master
commit 09b9354a8e703d24c132ee08d6c92eee1421fbd9
Author: Dmitry Gutov <[email protected]>
Commit: Dmitry Gutov <[email protected]>
Add a variable for the diff-hl-mode lighter
#64
---
diff-hl.el | 11 +++++++++--
1 file changed, 9 insertions(+), 2 deletions(-)
diff --git a/diff-hl.el b/diff-hl.el
index 5f45e02..d882eb1 100644
--- a/diff-hl.el
+++ b/diff-hl.el
@@ -470,11 +470,18 @@ in the source file, or the last line of the hunk above
it."
map))
(fset 'diff-hl-command-map diff-hl-command-map)
+(defvar diff-hl-lighter ""
+ "Mode line lighter for Diff Hl.
+
+The value of this variable is a mode line template as in
+`mode-line-format'.")
+
;;;###autoload
(define-minor-mode diff-hl-mode
"Toggle VC diff highlighting."
- :lighter "" :keymap `(([remap vc-diff] . diff-hl-diff-goto-hunk)
- (,diff-hl-command-prefix . diff-hl-command-map))
+ :lighter diff-hl-lighter
+ :keymap `(([remap vc-diff] . diff-hl-diff-goto-hunk)
+ (,diff-hl-command-prefix . diff-hl-command-map))
(if diff-hl-mode
(progn
(diff-hl-maybe-define-bitmaps)