emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] master 09b9354 12/25: Add a variable for the diff-hl-mode lighter


From: Dmitry Gutov
Subject: [elpa] master 09b9354 12/25: Add a variable for the diff-hl-mode lighter
Date: Sat, 8 Dec 2018 19:19:38 -0500 (EST)

branch: master
commit 09b9354a8e703d24c132ee08d6c92eee1421fbd9
Author: Dmitry Gutov <address@hidden>
Commit: Dmitry Gutov <address@hidden>

    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)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]