]> git.eshelyaron.com Git - emacs.git/commitdiff
Use colors in the VC mode lines
authorLars Ingebrigtsen <larsi@gnus.org>
Tue, 1 Mar 2016 03:25:27 +0000 (14:25 +1100)
committerLars Ingebrigtsen <larsi@gnus.org>
Tue, 1 Mar 2016 03:25:27 +0000 (14:25 +1100)
* lisp/vc/vc-hooks.el: Make the mode line faces default to
using colors to more clearly tell the user what the status is.

lisp/vc/vc-hooks.el

index 0c1718e94cbe65b186cd95bfb2aecdcd02f280c1..6488e53ef026ce540d7d01965a393a2c9182f709 100644 (file)
   :group 'vc-faces)
 
 (defface vc-needs-update-state
-  '((default :inherit vc-state-base-face))
+  '((default :inherit vc-state-base-face)
+    (((class color)) :foreground "blue" :weight bold))
   "Face for VC modeline state when the file needs update."
   :version "25.1"
   :group 'vc-faces)
 
 (defface vc-locked-state
-  '((default :inherit vc-state-base-face))
+  '((default :inherit vc-state-base-face)
+    (((class color)) :foreground "red"))
   "Face for VC modeline state when the file locked."
   :version "25.1"
   :group 'vc-faces)
 
 (defface vc-locally-added-state
-  '((default :inherit vc-state-base-face))
+  '((default :inherit vc-state-base-face)
+    (((class color)) :foreground "ForestGreen"))
   "Face for VC modeline state when the file is locally added."
   :version "25.1"
   :group 'vc-faces)
 
 (defface vc-conflict-state
-  '((default :inherit vc-state-base-face))
+  '((default :inherit vc-state-base-face)
+    (((class color)) :foreground "red" :weight bold))
   "Face for VC modeline state when the file contains merge conflicts."
   :version "25.1"
   :group 'vc-faces)
 
 (defface vc-removed-state
-  '((default :inherit vc-state-base-face))
+  '((default :inherit vc-state-base-face)
+    (((class color)) :foreground "red"))
   "Face for VC modeline state when the file was removed from the VC system."
   :version "25.1"
   :group 'vc-faces)
 
 (defface vc-missing-state
-  '((default :inherit vc-state-base-face))
+  '((default :inherit vc-state-base-face)
+    (((class color)) :foreground "red"))
   "Face for VC modeline state when the file is missing from the file system."
   :version "25.1"
   :group 'vc-faces)
 
 (defface vc-edited-state
-  '((default :inherit vc-state-base-face))
-  "Face for VC modeline state when the file is up to date."
+  '((default :inherit vc-state-base-face)
+    (((class color)) :foreground "ForestGreen"))
+  "Face for VC modeline state when the file is edited."
   :version "25.1"
   :group 'vc-faces)