summaryrefslogtreecommitdiff
path: root/common.el
diff options
context:
space:
mode:
authorJSDurand <mmemmew@gmail.com>2021-02-08 23:36:26 +0800
committerJSDurand <mmemmew@gmail.com>2021-02-08 23:36:26 +0800
commit393604e5bf4ce15df7342fdc094900fd1be2b39f (patch)
treed7b1e77cfe27b3ffa347fa2e9db632d97dfe7dc1 /common.el
parentc8d4224e42a710b262e8ba67d720f6eff4e89fcb (diff)
Constantly growing
A lot of improvements.
Diffstat (limited to 'common.el')
-rw-r--r--common.el10
1 files changed, 8 insertions, 2 deletions
diff --git a/common.el b/common.el
index 25b775d..3271da1 100644
--- a/common.el
+++ b/common.el
@@ -192,8 +192,14 @@ Require TO-REQUIRE so that we don't have errors.
Optional LIGHT means to use the lighter name instead of
completely hiding it."
- (cond (to-require (require to-require)))
- `(setcdr (assq ',minor minor-mode-alist) (list (or ,light ""))))
+ ;; (cond (to-require (require to-require)))
+ (cond
+ (to-require `(eval-after-load ',to-require
+ (quote
+ (setcdr
+ (assq ',minor minor-mode-alist)
+ (list (or ,light ""))))))
+ (`(setcdr (assq ',minor minor-mode-alist) (list (or ,light ""))))))
(provide 'common)
;;; common.el ends here.