From 7619fc6d910a93697eb74236344632c161d0dcd5 Mon Sep 17 00:00:00 2001 From: Jim Myhrberg Date: Sun, 23 Apr 2023 11:57:29 +0100 Subject: [PATCH] fix(autoload): do not autoload advice-add calls There's no need for yank and yank-pop to be adviced via an autoload, as it means simply having the package installed will apply the advices. Without autoloads on the advices, things still work as on first use of yank-indent-mode or global-yank-indent-mode the advices will be applied. --- yank-indent.el | 3 --- 1 file changed, 3 deletions(-) diff --git a/yank-indent.el b/yank-indent.el index 37d1b35..e143667 100644 --- a/yank-indent.el +++ b/yank-indent.el @@ -150,10 +150,7 @@ functions." (if (<= (- end beg) yank-indent-threshold) (indent-region beg end))))) -;;;###autoload (advice-add #'yank :after #'yank-indent--after-yank-advice) - -;;;###autoload (advice-add #'yank-pop :after #'yank-indent--after-yank-advice) (provide 'yank-indent)