diff options
author | Case Duckworth | 2021-09-06 23:50:56 -0500 |
---|---|---|
committer | Case Duckworth | 2021-09-06 23:50:56 -0500 |
commit | 63dd31fe4242695d9f6ceeec7c95e9a4a7ce607d (patch) | |
tree | 2835c321d61107c2a429ff826049dedb8d590e2c /lisp | |
parent | Add other-window-or-switch-buffer-backward (diff) | |
download | emacs-63dd31fe4242695d9f6ceeec7c95e9a4a7ce607d.tar.gz emacs-63dd31fe4242695d9f6ceeec7c95e9a4a7ce607d.zip |
Add :require-after
Diffstat (limited to 'lisp')
-rw-r--r-- | lisp/acdw-setup.el | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lisp/acdw-setup.el b/lisp/acdw-setup.el index a096c98..10a2b52 100644 --- a/lisp/acdw-setup.el +++ b/lisp/acdw-setup.el | |||
@@ -30,6 +30,12 @@ | |||
30 | :type - Either `nil', `keymap', or `macro': see `autoload' for details." | 30 | :type - Either `nil', `keymap', or `macro': see `autoload' for details." |
31 | :repeatable t) | 31 | :repeatable t) |
32 | 32 | ||
33 | (setup-define :require-after | ||
34 | (lambda (seconds) | ||
35 | `(run-with-idle-timer ,seconds nil | ||
36 | #'require ',(setup-get 'feature) nil t)) | ||
37 | :documentation "Requre FEATURE, after SECONDS idle time.") | ||
38 | |||
33 | (setup-define :face | 39 | (setup-define :face |
34 | (lambda (face spec) | 40 | (lambda (face spec) |
35 | `(custom-set-faces '(,face ,spec 'now "Customized by `setup'."))) | 41 | `(custom-set-faces '(,face ,spec 'now "Customized by `setup'."))) |