oni-git-commit: Make sure refill doesn't refill git commit comments
Re-add the advice around ‘refill-after-change-function’ every time that the function's library is loaded.
This commit is contained in:
parent
296ff541e7
commit
71882f577b
1 changed files with 4 additions and 3 deletions
|
@ -4,7 +4,7 @@
|
|||
|
||||
;; Author: Tom Willemse <tom@ryuslash.org>
|
||||
;; Keywords: local
|
||||
;; Version: 2022.1207.083737
|
||||
;; Version: 2025.0130.100352
|
||||
;; Package-Requires: (git-commit)
|
||||
|
||||
;; This program is free software; you can redistribute it and/or modify
|
||||
|
@ -49,8 +49,9 @@
|
|||
(add-hook 'git-commit-mode-hook 'electric-quote-local-mode)
|
||||
(add-hook 'git-commit-mode-hook 'refill-mode)
|
||||
|
||||
(add-function :after (symbol-function 'refill-after-change-function)
|
||||
#'oni-git-commit-disable-comment-refill)
|
||||
(with-eval-after-load 'refill
|
||||
(add-function :after (symbol-function 'refill-after-change-function)
|
||||
#'oni-git-commit-disable-comment-refill))
|
||||
|
||||
(provide 'oni-git-commit)
|
||||
;;; oni-git-commit.el ends here
|
||||
|
|
Loading…
Reference in a new issue