mirror of
https://github.com/pestctrl/emacs-config.git
synced 2026-06-14 12:21:20 +00:00
I want mail aliases in my commit message buffers
This commit is contained in:
parent
acfd8f5e72
commit
0674156291
1 changed files with 11 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue