I want mail aliases in my commit message buffers

This commit is contained in:
Benson Chu 2025-08-08 15:03:36 -05:00
parent acfd8f5e72
commit 0674156291

View file

@ -226,5 +226,16 @@
(when my-ec/enable-mail
(require 'work-mail))
(defun always-expand-mail-abbrevs-in-commit-buffer (orig)
(or with-editor-mode
(funcall orig)))
(add-hook 'with-editor-mode-hook
#'mail-abbrevs-setup)
(advice-add #'mail-abbrev-in-expansion-header-p
:around
#'always-expand-mail-abbrevs-in-commit-buffer)
(provide 'work-config)
;;; work-config.el ends here