doom

My literate doom emacs config
git clone https://github.com/michaelneuper/doom.git
Files | Log | Refs

commit 2d2c69790dbfe82f2124ca5bd6ae63c42eb34207
parent b39a80233a2ae75f46b6325cdef33f1b199dd188
Author: Michael Neuper <michael@michaelneuper.com>
Date:   Wed,  3 Sep 2025 19:23:44 +0200

install git blamer

Diffstat:
Mconfig.org | 30++++++++++++++++++++++++++++++
Mpackages.el | 1+
2 files changed, 31 insertions(+), 0 deletions(-)

diff --git a/config.org b/config.org @@ -595,6 +595,36 @@ Ensure [[https://github.com/alexluigit/dirvish/blob/main/docs/CUSTOMIZING.org#in :prefix "o" :desc "Dirvish Quick Access" "q" #'dirvish-quick-access) #+end_src +*** vc +#+begin_src emacs-lisp +(use-package! blamer + :init + (map! :leader + :desc "Git blame" "tB" #'blamer-mode + :desc "Commit info" "gi" (lambda () (interactive) + (funcall (if (display-graphic-p) + #'blamer-show-posframe-commit-info + #'blamer-show-commit-info)))) + :config + (defun blamer-callback-show-commit-diff (commit-info) + (interactive) + (let ((commit-hash (plist-get commit-info :commit-hash))) + (when commit-hash + (magit-show-commit commit-hash)))) + + (setq blamer-author-formatter " ✎ %s " + blamer-datetime-formatter "[%s]" + blamer-commit-formatter " ● %s" + blamer-avatar-folder (concat doom-cache-dir "blamer/avatars/") + blamer-bindings '(("<mouse-1>" . blamer-callback-show-commit-diff)) + blamer-min-offset 10) + + (custom-set-faces! + `(blamer-face + :height 0.8 + :foreground ,(face-attribute 'font-lock-comment-face :foreground) + :slant italic))) +#+end_src ** :term *** eshell Customise eshell: diff --git a/packages.el b/packages.el @@ -68,3 +68,4 @@ "ical-form.el" ("src" . "src"))) :ignore (not (featurep :system 'macos))) +(package! blamer)