diff options
author | yoctocell <public@yoctocell.xyz> | 2021-01-06 18:29:40 +0100 |
---|---|---|
committer | yoctocell <public@yoctocell.xyz> | 2021-01-06 18:29:40 +0100 |
commit | cbdb5ef8fe1cbf39884d5b0250a724830c861a70 (patch) | |
tree | 874838ef9623340630cb09dca95398e59529f074 /git-email.el | |
parent | c4fa74316566fc636a7cf968f14f6a59686c55a0 (diff) |
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):
Diffstat (limited to 'git-email.el')
-rw-r--r-- | git-email.el | 5 |
1 files changed, 4 insertions, 1 deletions
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) |