all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Drew Adams <drew.adams@oracle.com>
To: "angelomolina@tutanota.com" <angelomolina@tutanota.com>
Cc: "'Help-Gnu-Emacs \(help-gnu-emacs@gnu.org\)'" <help-gnu-emacs@gnu.org>
Subject: RE: [External] : Re: Activating a minor-mode
Date: Mon, 14 Mar 2022 23:29:20 +0000	[thread overview]
Message-ID: <SJ0PR10MB5488C0064FBDDC4A72DAC448F30F9@SJ0PR10MB5488.namprd10.prod.outlook.com> (raw)
In-Reply-To: <My9Uy7i--3-2@tutanota.com>

>> I also want to activate the minor-mode globally.
>> How could I activate a minor-mode globally?
>
> Start with `C-h f define-minor-mode'.
> Check the Emacs manual, with `i minor mode'.
> Check the Elisp manual, with `i minor mode':
>
> It only describes how to code and define a minor-mode rather than using.  Because of the utility
of using a minor-mode, I do not see some focused information on how to construct and use a
minor-mode using some examples.  There is only an introduction to lisp but is quite basic.

Your knowledge is what is quite basic.
Nothing wrong with that; we're all ignorant.

You just don't know how to ask Emacs well yet.
Learn that better - it's the key to the lock.

* Is the minor mode defined for use globally,
  e.g. defined with :global t?

* If not, is there a globalized version of the
  minor mode (`define-globalized-minor-mode')?

* If not, can you define your own globalized
  version of it, and use that?

* If not, can you turn on the minor mode in mode hooks?

All of these possibilities are covered in the doc.
And the source code defining the mode tells you
more (everything).

      reply	other threads:[~2022-03-14 23:29 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-03-14 18:13 Activating a minor-mode angelomolina--- via Users list for the GNU Emacs text editor
     [not found] ` <My8ckXL--3-2@tutanota.com-My8dEhi----2>
2022-03-14 19:20   ` angelomolina--- via Users list for the GNU Emacs text editor
2022-03-14 21:55     ` [External] : " Drew Adams
2022-03-15  6:28       ` tomas
2022-03-15 14:08         ` Eli Zaretskii
2022-03-15 15:35           ` tomas
2022-03-15 16:05           ` Drew Adams
2022-03-15 16:56             ` Eli Zaretskii
2022-03-15 17:11               ` Robert Pluim
2022-03-15 19:49               ` Drew Adams
2022-03-15 20:22                 ` tomas
     [not found]     ` <SJ0PR10MB5488471EF6654E78C062A2D5F30F9@SJ0PR10MB5488.namprd10.prod.outlook.com-My9Qgei--7-2>
2022-03-14 22:15       ` angelomolina--- via Users list for the GNU Emacs text editor
2022-03-14 23:29         ` Drew Adams [this message]

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=SJ0PR10MB5488C0064FBDDC4A72DAC448F30F9@SJ0PR10MB5488.namprd10.prod.outlook.com \
    --to=drew.adams@oracle.com \
    --cc=angelomolina@tutanota.com \
    --cc=help-gnu-emacs@gnu.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 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.