mirror of
https://github.com/pestctrl/emacs-config.git
synced 2026-02-16 16:24:18 +00:00
Compare commits
1 commit
1f3ad7c517
...
aadb9ea399
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
aadb9ea399 |
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