Skip to content

Commit

Permalink
feature: add blamer--overlay func to autoload
Browse files Browse the repository at this point in the history
  • Loading branch information
Artawower committed May 12, 2024
1 parent ab7d19c commit 4cc2e6d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions blamer.el
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
;; Author: Artur Yaroshenko <[email protected]>
;; URL: https://github.com/artawower/blamer.el
;; Package-Requires: ((emacs "27.1") (posframe "1.1.7") (async "1.9.8"))
;; Version: 0.8.6
;; Version: 0.8.7

;; This program is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
Expand Down Expand Up @@ -376,6 +376,7 @@ Will show the available `blamer-bindings'."
(when-let* ((file-name (blamer--get-local-name (buffer-file-name))))
(vc-backend file-name)))

;;;###autoload
(defun blamer--clear-overlay ()
"Clear last overlay."
(dolist (ov blamer--overlays)
Expand Down Expand Up @@ -864,7 +865,8 @@ Return list of strings."
(make-overlay render-point render-point nil t t)))
(popup-msg (blamer--create-popup-msg commit-info)))

(overlay-put ov 'after-string popup-msg)
(overlay-put ov 'priority 65001)
(overlay-put ov 'before-string popup-msg)
(overlay-put ov 'intangible t)
(overlay-put ov 'window (get-buffer-window))
(add-to-list 'blamer--overlays ov)))
Expand Down

0 comments on commit 4cc2e6d

Please sign in to comment.