core-lib: replace require subr-x with autoloads
This commit is contained in:
parent
12d0cf94b6
commit
2526101de6
1 changed files with 6 additions and 2 deletions
|
@ -1,8 +1,10 @@
|
||||||
;;; core-lib.el
|
;;; core-lib.el
|
||||||
|
|
||||||
(require 'cl-lib)
|
(require 'cl-lib)
|
||||||
(eval-when-compile
|
|
||||||
(require 'subr-x))
|
;;
|
||||||
|
(autoload 'when-let "subr-x")
|
||||||
|
(autoload 'if-let "subr-x")
|
||||||
|
|
||||||
;; I don't use use-package for these to save on the `fboundp' lookups it does
|
;; I don't use use-package for these to save on the `fboundp' lookups it does
|
||||||
;; for its :commands property. I use dolists instead of mapc to avoid extra
|
;; for its :commands property. I use dolists instead of mapc to avoid extra
|
||||||
|
@ -10,9 +12,11 @@
|
||||||
;; optimization.
|
;; optimization.
|
||||||
(dolist (sym '(async-start async-start-process async-byte-recompile-directory))
|
(dolist (sym '(async-start async-start-process async-byte-recompile-directory))
|
||||||
(autoload sym "async"))
|
(autoload sym "async"))
|
||||||
|
|
||||||
(dolist (sym '(persistent-soft-exists-p persistent-soft-fetch
|
(dolist (sym '(persistent-soft-exists-p persistent-soft-fetch
|
||||||
persistent-soft-flush persistent-soft-store))
|
persistent-soft-flush persistent-soft-store))
|
||||||
(autoload sym "persistent-soft"))
|
(autoload sym "persistent-soft"))
|
||||||
|
|
||||||
(dolist (sym '(s-trim s-trim-left s-trim-right s-chomp s-collapse-whitespace
|
(dolist (sym '(s-trim s-trim-left s-trim-right s-chomp s-collapse-whitespace
|
||||||
s-word-wrap s-center s-pad-left s-pad-right s-truncate s-left
|
s-word-wrap s-center s-pad-left s-pad-right s-truncate s-left
|
||||||
s-right s-chop-suffix s-chop-suffixes s-chop-prefix
|
s-right s-chop-suffix s-chop-suffixes s-chop-prefix
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue