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.
This commit is contained in:
2023-04-23 11:57:29 +01:00
parent e5daa2d525
commit 7619fc6d91

View File

@@ -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)