From cbdb5ef8fe1cbf39884d5b0250a724830c861a70 Mon Sep 17 00:00:00 2001 From: yoctocell Date: Wed, 6 Jan 2021 18:29:40 +0100 Subject: Use custom face for revision Don't depent on `log-view-mode' to be loaded. * git-email.el (git-email-revision-face): (git-email--get-revision): --- git-email.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'git-email.el') diff --git a/git-email.el b/git-email.el index c81e647..65e6c6c 100644 --- a/git-email.el +++ b/git-email.el @@ -104,6 +104,9 @@ in you git config. If the variable is not set, the 'to' address will be empty." :type 'int :group 'git-email) +(defface git-email-revision-face '((t :inherit font-lock-comment-face)) + "Face used for the revision when selecting from the minibuffer.") + (defcustom git-email-apply-patch-function 'git-email--shell-command-on-body "Function that executes a shell command on the body of the message. @@ -234,7 +237,7 @@ If no marks are found, return the filename at point." (propertize (replace-regexp-in-string "\\([a-f0-9]+\\) .*$" "\\1" rev) - 'face 'log-view-commit-body) + 'face 'git-email-revision-face) (propertize (replace-regexp-in-string "[a-f0-9]+ \\(.*$\\)" "\\1" rev) -- cgit v1.2.3