unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Kevin Rodgers <ihs_4664@yahoo.com>
Subject: Re: no way to remove festive icons from within menus
Date: Thu, 18 Nov 2004 09:40:27 -0700	[thread overview]
Message-ID: <3041k1F2t8c53U1@uni-berlin.de> (raw)
In-Reply-To: <mailman.3350.1100714210.8225.bug-gnu-emacs@gnu.org>

Kevin Rodgers wrote:
 > Dan Jacobson wrote:
 >  > So there should be a way to do (tool-bar-mode 0) right in the toolbar
 >  > itself.
 >
 > (tool-bar-add-item "exit" 'tool-bar-mode 'toggle-tool-bar-mode
 >            :help "Toggle the Tool Bar")

It might be nice if Emacs provided a tool bar analogue to
menu-bar-final-items:

(setq tool-bar-final-items
       (append tool-bar-final-items '(toggle-tool-bar-mode)))

Also, why aren't the menus in menu-bar-final-items right justified?

 >  > And a way to bring it back via the menus.
 >
 > (define-key menu-bar-options-menu [toggle-tool-bar-mode]
 >   (menu-bar-make-toggle toggle-tool-bar-mode tool-bar-mode
 >             "Display Tool Bar (Tool Bar mode)"
 >             "Tool Bar mode %s"
 >             "Display the tool bar icons"
 >             (tool-bar-mode)))

And for symmetry:

;; put this before (tool-bar-add-item ...) above:
(tool-bar-add-item "exit" 'menu-bar-mode 'toggle-menu-bar-mode
            :help "Toggle the Menu Bar")

;; put this after (define-key menu-bar-options-menu ...) above:
(define-key menu-bar-options-menu [toggle-menu-bar-mode]
   (menu-bar-make-toggle toggle-menu-bar-mode menu-bar-mode
             "Display Menu Bar (Menu Bar mode)"
             "Menu Bar mode %s"
             "Display the menu bar labels"
             (menu-bar-mode nil)))

-- 
Kevin Rodgers

  parent reply	other threads:[~2004-11-18 16:40 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.2444.1100325251.8225.bug-gnu-emacs@gnu.org>
2004-11-17 17:47 ` no way to remove festive icons from within menus Kevin Rodgers
     [not found] ` <mailman.3350.1100714210.8225.bug-gnu-emacs@gnu.org>
2004-11-18 16:40   ` Kevin Rodgers [this message]
2004-11-13  0:35 Dan Jacobson

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=3041k1F2t8c53U1@uni-berlin.de \
    --to=ihs_4664@yahoo.com \
    /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).