all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Kaushal Modi <kaushal.modi@gmail.com>
To: Emanuel Berg <moasen@zoho.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Disable menu bar mode
Date: Thu, 14 Dec 2017 05:13:38 +0000	[thread overview]
Message-ID: <CAFyQvY1QjpyA8Ew=d0RSo=rbRhtsmtrstQWrtaPMeGDzGyMsng@mail.gmail.com> (raw)
In-Reply-To: <86a7ymngu9.fsf@zoho.com>

On Wed, Dec 13, 2017 at 10:15 PM Emanuel Berg <moasen@zoho.com> wrote:

> Kaushal Modi wrote:
>
> > menu-bar-mode is a minor mode.
> >
> > So you do just M-x menu-bar-mode to toggle it
>
> Well, you menu bar users should know :)
>

Well, I don't use menu bars.

Even if I had come across an unknown mode, say smart-ass-mode, I could
first of all easily guess that it's either a major mode or a minor mode. If
I need to call it interactively or toggle then it's most likely a minor
mode.

But there is no need to guess..By calling M-x xref-find-definitions (bound
by default to M-.) with point on "smart-ass-mode" (in emacs-lisp-mode
buffer), I can directly jump to the elisp definition and figure out what it
actually is.

So I did that with menu-bar-mode, and M-. jumped to:

(define-minor-mode menu-bar-mode
  "Toggle display of a menu bar on each frame (Menu Bar mode).
With a prefix argument ARG, enable Menu Bar mode if ARG is
positive, and disable it otherwise.  If called from Lisp, enable
Menu Bar mode if ARG is omitted or nil.
...

And then (emacs) Minor Modes node in the emacs manual talks about using M-x
MINOR-MODE to toggle that mode.
-- 

Kaushal Modi


  reply	other threads:[~2017-12-14  5:13 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-12-14  1:55 Disable menu bar mode Rusi
2017-12-14  2:30 ` Emanuel Berg
2017-12-14  2:38 ` Emanuel Berg
2017-12-14  2:49   ` Kaushal Modi
     [not found]   ` <mailman.5687.1513219781.27995.help-gnu-emacs@gnu.org>
2017-12-14  3:11     ` Emanuel Berg
2017-12-14  5:13       ` Kaushal Modi [this message]
     [not found]       ` <mailman.5689.1513228434.27995.help-gnu-emacs@gnu.org>
2017-12-14  5:42         ` Emanuel Berg
2017-12-14 14:37           ` Stefan Monnier
2017-12-18 21:39 ` B. T. Raven
2017-12-19  1:45   ` Rusi
2017-12-19  2:37     ` Emanuel Berg
2017-12-19  2:37     ` Drew Adams
     [not found]     ` <mailman.5961.1513651377.27995.help-gnu-emacs@gnu.org>
2017-12-19 13:52       ` Rusi

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAFyQvY1QjpyA8Ew=d0RSo=rbRhtsmtrstQWrtaPMeGDzGyMsng@mail.gmail.com' \
    --to=kaushal.modi@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=moasen@zoho.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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.