summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.emacs7
1 files changed, 5 insertions, 2 deletions
diff --git a/.emacs b/.emacs
index 742f9f1..c1ad7a5 100644
--- a/.emacs
+++ b/.emacs
@@ -268,9 +268,12 @@
(defun my/revision-at-point ()
(cond
- ;; TODO: add vc support.
((derived-mode-p 'magit-mode)
- (magit-branch-or-commit-at-point))))
+ (magit-branch-or-commit-at-point))
+ ((derived-mode-p 'vc-git-log-view-mode)
+ (log-view-current-tag))
+ ((derived-mode-p 'vc-annotate-mode)
+ (car (vc-annotate-extract-revision-at-line)))))
(defun my/describe-revision (rev)
"Format a Git revision in a format suitable for changelogs."