]> code.delx.au - gnu-emacs-elpa/commitdiff
Add user option `diff-hl-dired-extra-indicators'
authorDmitry Gutov <dgutov@yandex.ru>
Mon, 15 Dec 2014 02:20:49 +0000 (04:20 +0200)
committerDmitry Gutov <dgutov@yandex.ru>
Mon, 15 Dec 2014 02:20:49 +0000 (04:20 +0200)
diff-hl-dired.el

index f85ac19abd284ce99993a86a2f560af1262f5b36..57ce8b880e921b38924bc374a2345c6bc281a153 100644 (file)
   '((default :inherit dired-ignored))
   "Face used to highlight unregistered files.")
 
+(defcustom diff-hl-dired-extra-indicators t
+  "Non-nil to indicate ignored files."
+  :group 'diff-hl
+  :type 'boolean)
+
 ;;;###autoload
 (define-minor-mode diff-hl-dired-mode
   "Toggle VC diff highlighting on the side of a Dired window."
                (unless more-to-come
                  (diff-hl-dired-highlight-items (append dirs-alist
                                                         files-alist))
-                 (diff-hl-dired-update-ignores backend def-dir)))))
+                 (when diff-hl-dired-extra-indicators
+                   (diff-hl-dired-update-ignores backend def-dir))))))
          )))))
 
 (defun diff-hl-dired-update-ignores (backend def-dir)