From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eduardo Ochs Newsgroups: gmane.emacs.help Subject: Re: Make minor mode available but not enable Date: Sun, 7 Apr 2024 11:07:32 -0300 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13789"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Heime via Users list for the GNU Emacs text editor To: Heime Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sun Apr 07 16:08:49 2024 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rtTCT-0003LU-IT for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 07 Apr 2024 16:08:49 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rtTBZ-0004fO-3B; Sun, 07 Apr 2024 10:07:53 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rtTBX-0004ez-8n for help-gnu-emacs@gnu.org; Sun, 07 Apr 2024 10:07:51 -0400 Original-Received: from mail-yb1-xb2c.google.com ([2607:f8b0:4864:20::b2c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rtTBR-0007Xy-PB for help-gnu-emacs@gnu.org; Sun, 07 Apr 2024 10:07:51 -0400 Original-Received: by mail-yb1-xb2c.google.com with SMTP id 3f1490d57ef6-dcc73148611so3922932276.3 for ; Sun, 07 Apr 2024 07:07:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1712498864; x=1713103664; darn=gnu.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=RrBltntGI5CB8ncjmFp0LXwUAJwIyVFeigP7fnFtYiA=; b=S9X+YaDkasdSUqglmK6DDyp9MMosWULAvGgqA2T9Df4QPQ5RDHQ4kLAZU8UbtyF0gN /aWXX9XZ4tJyozfTWSy7tMFNOfn/DiJ/LFAww/cZOx3fgVtgZiDwRYC4QXUvyGodAe8k JSUma7TWsPp/IzVZmRN6Y+ngXBv9/L2RZU81yMcxB4UWnvwnZIX5x/vFUthQyv0euGdE 7t/ye9smC5dl4d8r15324hVZtN1YvZv5Ja8s0AEVUz6gd1S4v1ISg8UXKjtJhZYeEePS MK+euC3DuSE4o0PtAa5jrzmvJWEsCYLaEduLXZTLuqTJ8LHLQ/hPjKrGbnF+QZxeA0Fq J7Fw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712498864; x=1713103664; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=RrBltntGI5CB8ncjmFp0LXwUAJwIyVFeigP7fnFtYiA=; b=kyRJo6Rjk9jV75zNgvyorbY36UKb8xqND51fGSL66D7pfuSAwHVPVGZL8fke6dJbDm IytJFqnd1NmY7pmK/gIMon/dSZBh2sEb63ymFPuE8Vm7Ulyg7BBus93YtLhqw+Rx5Irk lXVtacLhJKKl+apO1pbdd6pehDVpLR5rFQngVPIZ5zQPKhvwxcV2Xt4DhdNz74ZDT6nz mHwS8vPceLIa24BJ2q1Zo0Y5CEbpj1SWdUE/o1okpz9ZYma8fZnjaMtjyJP1I7jGQ2F1 9K8oPZY7kU+Y5odT7uPv4wVAENADX+TeNP+dKa/CgBslwYRAd4UOYu4YqV+QGIYbh/yv wyDg== X-Gm-Message-State: AOJu0YxW+TUk9+rG+0R2GYInUcO85OPq9Ivbe191W3m5zBkG9cLkO5TW RCenAXsbKOCgybjX79qhK8ALx8JMjkp/TMfH4gQth2NyHsUv9cvislWfnmH/TsOatTwA1XWUhQ5 +7Tjq0+TZx9/lMmcRZ/fI60l7+v8= X-Google-Smtp-Source: AGHT+IFp41hNRfRciyUIUzEZfcomadHY1W50K3UWvFauas1J9ABsSYBG6r+PkzOTNrQBRcWILS2XPsIec46NNavwNjU= X-Received: by 2002:a25:ba8e:0:b0:dcc:bc92:6704 with SMTP id s14-20020a25ba8e000000b00dccbc926704mr4123033ybg.18.1712498864142; Sun, 07 Apr 2024 07:07:44 -0700 (PDT) In-Reply-To: Received-SPF: pass client-ip=2607:f8b0:4864:20::b2c; envelope-from=eduardoochs@gmail.com; helo=mail-yb1-xb2c.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:146267 Archived-At: On Sun, 7 Apr 2024 at 08:26, Heime 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