mirror of
https://github.com/jimeh/yank-indent.git
synced 2026-02-19 01:26:40 +00:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user