Skip to content

Commit

Permalink
Fix face declarations
Browse files Browse the repository at this point in the history
  • Loading branch information
sandhu committed Jan 17, 2023
1 parent 5312c8d commit a28bd2c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions config/008-ui-config.el
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"git diff --stat")))
(concat
(unless (= 0 (length branch-str))
(propertize (concat "" branch-str) 'face '((t :foreground "#444444"))))
(propertize (concat "" branch-str) 'face '(:foreground "#444444")))
(unless (= 0 (length branch-dirty))
(propertize "" 'face font-lock-warning-face)))))
"]"))))
Expand All @@ -54,8 +54,8 @@
(let ((diff (shell-command-to-string cmd)))
(when (and diff (string-match "^\\([0-9]+\\)\t\\([0-9]+\\)\t" diff))
(concat
(propertize (format "+%s" (match-string 1 diff)) 'face '((t :foreground "green4")))
(propertize (format " -%s" (match-string 2 diff)) 'face '((t :foreground "red4"))))))))
(propertize (format "+%s" (match-string 1 diff)) 'face '(:foreground "green4"))
(propertize (format " -%s" (match-string 2 diff)) 'face '(:foreground "red4")))))))
(unstaged (funcall diff-str (concat "git diff --numstat -- " (buffer-file-name))))
(staged (funcall diff-str (concat "git diff --cached --numstat -- " (buffer-file-name)))))
(when (or unstaged staged)
Expand Down

0 comments on commit a28bd2c

Please sign in to comment.