From: Ed Cavazos <proteus@theworld.com>
Subject: toggle-menu-bar and toggle-tool-bar
Date: 30 May 2003 05:34:30 -0500 [thread overview]
Message-ID: <m3smqwn2o9.fsf@theworld.com> (raw)
What do you guys think about having toggle-menu-bar and
toggle-tool-bar functions? There's already toggle-scroll-bar so it
doesn't seem too far out.
In my desktop environment, I have many Emacs frames opened (sometimes
20-30). My default frame settings specify no toolbar or
menu. Occasionally I'd like to see the menus and toolbar offered by a
mode or package, so I want to turn them on in that particular
frame. Using menu-bar-mode and tool-bar-mode, all my frames grow
unnecessarily.
I use these functions (they depend upon a couple of other support
functions I use) :
(defun toggle-menu-bar ()
"Toggle the display of the menu bar in the current frame."
(interactive)
(let ((frame (selected-frame)))
(let ((flag (toggle-0-or-1
(frame-parameter frame 'menu-bar-lines))))
(modify-frame-parameter frame 'menu-bar-lines flag))))
(defun toggle-tool-bar ()
"Toggle the display of the tool bar in the current frame."
(interactive)
(let ((frame (selected-frame)))
(let ((flag (toggle-0-or-1
(frame-parameter frame 'tool-bar-lines))))
(modify-frame-parameter frame 'tool-bar-lines flag))))
reply other threads:[~2003-05-30 10:34 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=m3smqwn2o9.fsf@theworld.com \
--to=proteus@theworld.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).