summaryrefslogtreecommitdiff
path: root/common.el
diff options
context:
space:
mode:
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.