* Make minor mode available but not enable
@ 2024-04-07 11:25 Heime
2024-04-07 14:07 ` Eduardo Ochs
0 siblings, 1 reply; 2+ messages in thread
From: Heime @ 2024-04-07 11:25 UTC (permalink / raw)
To: Heime via Users list for the GNU Emacs text editor
I have a gali-minor-mode which I want to make available but not activate.
The users can then activate when they wish.
In file falk-gali I add the paths. Would I need (require 'gali)
to load the gali functionality ? I do not want gali-minor-mode
to be enabled automatically but only to make the code available
for users to enable it themselves if they wish.
(defun falk-gali ()
(add-to-list 'load-path "~/bin/falk/gali")
(add-to-list 'load-path "~/bin/falk/gali/avus"))
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Make minor mode available but not enable
2024-04-07 11:25 Make minor mode available but not enable Heime
@ 2024-04-07 14:07 ` Eduardo Ochs
0 siblings, 0 replies; 2+ messages in thread
From: Eduardo Ochs @ 2024-04-07 14:07 UTC (permalink / raw)
To: Heime; +Cc: Heime via Users list for the GNU Emacs text editor
On Sun, 7 Apr 2024 at 08:26, Heime <heimeborgia@protonmail.com> wrote:
>
> I have a gali-minor-mode which I want to make available but not activate.
> The users can then activate when they wish.
>
> In file falk-gali I add the paths. Would I need (require 'gali)
> to load the gali functionality ? I do not want gali-minor-mode
> to be enabled automatically but only to make the code available
> for users to enable it themselves if they wish.
> (defun falk-gali ()
> (add-to-list 'load-path "~/bin/falk/gali")
> (add-to-list 'load-path "~/bin/falk/gali/avus"))
Hi Heime,
I guess that you want ":init-value nil", and maybe also ":global t",
in define-minor-mode... this is what I use in eev:
(define-minor-mode eev-mode
"(Big docstring)"
:init-value nil
:global t
:lighter " eev"
:group 'eev)
Cheers,
Eduardo Ochs
http://anggtwu.net/eepitch.html
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-04-07 14:07 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-04-07 11:25 Make minor mode available but not enable Heime
2024-04-07 14:07 ` Eduardo Ochs
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).