diff options
Diffstat (limited to 'common.el')
-rw-r--r-- | common.el | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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) |