Skip to content

Commit

Permalink
tweak(blamer): disable when in +writing-mode
Browse files Browse the repository at this point in the history
  • Loading branch information
abougouffa committed Oct 16, 2023
1 parent 7f21ba9 commit 478d4f6
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion modules/me-vc.el
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,15 @@
"gB" #'blamer-show-commit-info)

;; Use 10% smaller font size for blamer's text
(set-face-attribute 'blamer-face nil :height (truncate (* 0.9 (face-attribute 'default :height)))))
(set-face-attribute 'blamer-face nil :height (truncate (* 0.9 (face-attribute 'default :height))))

(with-eval-after-load 'me-writing-mode
(defvar-local +blamer-was-active-p blamer-mode)
(+add-hook! '+writing-mode-enable-hook
(setq-local +blamer-was-active-p blamer-mode)
(when +blamer-was-active-p (blamer-mode -1)))
(+add-hook! '+writing-mode-disable-hook
(when (bound-and-true-p +blamer-was-active-p) (blamer-mode 1)))))

(use-package git-timemachine
:straight t
Expand Down

0 comments on commit 478d4f6

Please sign in to comment.