1
0
Fork 0

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:
Tom Willemse 2025-01-30 10:04:52 -08:00
parent 296ff541e7
commit 71882f577b

View file

@ -4,7 +4,7 @@
;; Author: Tom Willemse <tom@ryuslash.org> ;; Author: Tom Willemse <tom@ryuslash.org>
;; Keywords: local ;; Keywords: local
;; Version: 2022.1207.083737 ;; Version: 2025.0130.100352
;; Package-Requires: (git-commit) ;; Package-Requires: (git-commit)
;; This program is free software; you can redistribute it and/or modify ;; 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 'electric-quote-local-mode)
(add-hook 'git-commit-mode-hook 'refill-mode) (add-hook 'git-commit-mode-hook 'refill-mode)
(add-function :after (symbol-function 'refill-after-change-function) (with-eval-after-load 'refill
#'oni-git-commit-disable-comment-refill) (add-function :after (symbol-function 'refill-after-change-function)
#'oni-git-commit-disable-comment-refill))
(provide 'oni-git-commit) (provide 'oni-git-commit)
;;; oni-git-commit.el ends here ;;; oni-git-commit.el ends here