summaryrefslogtreecommitdiff
path: root/common.el
diff options
context:
space:
mode:
Diffstat (limited to 'common.el')
-rw-r--r--common.el6
1 files changed, 4 insertions, 2 deletions
diff --git a/common.el b/common.el
index b19a85a..702124f 100644
--- a/common.el
+++ b/common.el
@@ -67,8 +67,10 @@
;;; Hide some minor mode from the mode line display.
;;;###autoload
-(defmacro durand-hide-minor-mode (minor)
- "Hide MINOR from the mode line."
+(defmacro durand-hide-minor-mode (minor &optional to-require)
+ "Hide MINOR from the mode line.
+Require TO-REQUIRE so that we don't have errors."
+ (cond (to-require (require to-require)))
`(setcdr (assq ',minor minor-mode-alist) (list "")))
(provide 'common)