summaryrefslogtreecommitdiff
path: root/modeline.el
diff options
context:
space:
mode:
Diffstat (limited to 'modeline.el')
-rw-r--r--modeline.el14
1 files changed, 14 insertions, 0 deletions
diff --git a/modeline.el b/modeline.el
index 683bf3d..b244463 100644
--- a/modeline.el
+++ b/modeline.el
@@ -91,6 +91,8 @@
(modeline-spc)
(modeline-format-buffer-size)
(modeline-spc)
+ (modeline-format-keycast)
+ (modeline-spc)
(modeline-format-minor-modes)))
;;;###autoload
@@ -366,6 +368,18 @@ mouse-2: Show help for minor mode
mouse-3: Toggle minor modes"
mode-line-minor-mode-keymap))
+(defun modeline-format-keycast ()
+ "Format the keycast information."
+ (declare (side-effect-free t))
+ (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))
+
;;; NOTE: The minor mode menu does not work with my custom mode line.
;;;###autoload