summaryrefslogtreecommitdiff
path: root/common.el
diff options
context:
space:
mode:
Diffstat (limited to 'common.el')
-rw-r--r--common.el7
1 files changed, 7 insertions, 0 deletions
diff --git a/common.el b/common.el
index 21ba10d..b19a85a 100644
--- a/common.el
+++ b/common.el
@@ -64,6 +64,13 @@
(user-error "You pressed an intentionally disabled key-binding: %s"
(key-description (this-command-keys-vector))))
+;;; Hide some minor mode from the mode line display.
+
+;;;###autoload
+(defmacro durand-hide-minor-mode (minor)
+ "Hide MINOR from the mode line."
+ `(setcdr (assq ',minor minor-mode-alist) (list "")))
+
(provide 'common)
;;; common.el ends here.