summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--modeline.el12
1 files changed, 7 insertions, 5 deletions
diff --git a/modeline.el b/modeline.el
index b244463..804442e 100644
--- a/modeline.el
+++ b/modeline.el
@@ -371,14 +371,16 @@ mouse-3: Toggle minor modes"
(defun modeline-format-keycast ()
"Format the keycast information."
(declare (side-effect-free t))
- (modeline-propertize
- (format-mode-line mode-line-keycast)
- nil
- "Minor mode
+ (cond
+ (durand-keycast-mode
+ (modeline-propertize
+ (format-mode-line mode-line-keycast)
+ nil
+ "Minor mode
mouse-1: Display minor mode menu
mouse-2: Show help for minor mode
mouse-3: Toggle minor modes"
- mode-line-minor-mode-keymap))
+ mode-line-minor-mode-keymap))))
;;; NOTE: The minor mode menu does not work with my custom mode line.