From: Juri Linkov <juri@jurta.org>
Subject: Re: battery.el: Rename display-battery-mode to battery-mode?
Date: Sat, 06 Aug 2005 04:06:04 +0300 [thread overview]
Message-ID: <87oe8cxhe2.fsf@jurta.org> (raw)
In-Reply-To: <v9u0i8gvsg.fsf@marauder.physik.uni-ulm.de> (Reiner Steib's message of "Tue, 02 Aug 2005 18:15:11 +0200")
> 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/
next prev parent reply other threads:[~2005-08-06 1:06 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-08-02 16:15 battery.el: Rename display-battery-mode to battery-mode? Reiner Steib
2005-08-04 6:57 ` Lute Kamstra
2005-08-04 15:54 ` Reiner Steib
2005-08-04 16:28 ` Juri Linkov
2005-08-06 1:06 ` Juri Linkov [this message]
2005-08-06 18:36 ` Richard M. Stallman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87oe8cxhe2.fsf@jurta.org \
--to=juri@jurta.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).