From 71882f577b4c0e8a84f97541bd2c7326e361147c Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Thu, 30 Jan 2025 10:04:52 -0800 Subject: [PATCH] oni-git-commit: Make sure refill doesn't refill git commit comments MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Re-add the advice around ‘refill-after-change-function’ every time that the function's library is loaded. --- oni-git-commit.el | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/oni-git-commit.el b/oni-git-commit.el index 9aaa487..a3fad51 100644 --- a/oni-git-commit.el +++ b/oni-git-commit.el @@ -4,7 +4,7 @@ ;; Author: Tom Willemse ;; 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