[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: battery.el: Rename display-battery-mode to battery-mode?
From: |
Juri Linkov |
Subject: |
Re: battery.el: Rename display-battery-mode to battery-mode? |
Date: |
Sat, 06 Aug 2005 04:06:04 +0300 |
User-agent: |
Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux) |
> I tried to enable battery-mode on my notebook using `M-x battery- TAB'
> but I got "No match". Eventually I found `display-battery-mode' in
> `battery.el'. Shouldn't the name of the minor mode read
> `battery-mode' instead of `display-battery-mode'?
Another change to make it easier to enable battery-mode is to add
a new menu item to the "Show/Hide" menu, next to the `time-mode'.
"Show/Hide" menu is not too big yet. When it becomes bigger,
mode-line related settings could be moved to a separate submenu.
Index: lisp/menu-bar.el
===================================================================
RCS file: /cvsroot/emacs/emacs/lisp/menu-bar.el,v
retrieving revision 1.261
diff -c -r1.261 menu-bar.el
*** lisp/menu-bar.el 4 Jul 2005 23:08:56 -0000 1.261
--- lisp/menu-bar.el 5 Aug 2005 20:18:47 -0000
***************
*** 700,705 ****
--- 700,710 ----
(define-key menu-bar-showhide-menu [linecolumn-separator]
'("--"))
+ (define-key menu-bar-showhide-menu [showhide-battery]
+ (menu-bar-make-mm-toggle display-battery-mode
+ "Battery status"
+ "Display battery status information in mode line"))
+
(define-key menu-bar-showhide-menu [showhide-date-time]
(menu-bar-make-mm-toggle display-time-mode
"Date, Time and Mail"
--
Juri Linkov
http://www.jurta.org/emacs/