help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [External] : Re: Activating a minor-mode


From: Drew Adams
Subject: RE: [External] : Re: Activating a minor-mode
Date: Mon, 14 Mar 2022 23:29:20 +0000

>> 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 via email to

[Prev in Thread] Current Thread [Next in Thread]