From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Yoni Rabkin Newsgroups: gmane.emacs.devel Subject: Re: best practices for implementing Emms configuration Date: Sat, 10 Dec 2022 08:54:02 -0500 Message-ID: <87zgbvnz45.fsf@rabkins.net> References: <87pmcspi77.fsf@rabkins.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36547"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) Cc: emacs-devel To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Dec 10 14:54:46 2022 Return-path: Envelope-to: ged-emacs-devel@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 1p40JS-0009LQ-7x for ged-emacs-devel@m.gmane-mx.org; Sat, 10 Dec 2022 14:54:46 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p40Iw-0004MW-Ji; Sat, 10 Dec 2022 08:54:14 -0500 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 1p40Iu-0004Lt-Fk for emacs-devel@gnu.org; Sat, 10 Dec 2022 08:54:12 -0500 Original-Received: from smtprelay0011.hostedemail.com ([216.40.44.11] helo=relay.hostedemail.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p40Io-0003nT-GC for emacs-devel@gnu.org; Sat, 10 Dec 2022 08:54:11 -0500 Original-Received: from omf18.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id E7E331C626B; Sat, 10 Dec 2022 13:54:04 +0000 (UTC) Original-Received: from [HIDDEN] (Authenticated sender: yoni@rabkins.net) by omf18.hostedemail.com (Postfix) with ESMTPA id A08BE2E; Sat, 10 Dec 2022 13:54:03 +0000 (UTC) X-Ethics: Use GNU In-Reply-To: (Stefan Monnier's message of "Fri, 09 Dec 2022 14:23:12 -0500") X-Rspamd-Server: rspamout06 X-Rspamd-Queue-Id: A08BE2E X-Stat-Signature: 1wpbs9wokmuzqi8jejy8ur735uedzjzy X-Session-Marker: 796F6E69407261626B696E732E6E6574 X-Session-ID: U2FsdGVkX1+/y3JYw0+IA0n3kVtm+Suk72+UYV9VShI= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rabkins.net; h=from:to:cc:subject:references:date:in-reply-to:message-id:mime-version:content-type; s=dkim1; bh=qnjy0dr/lCbdL07yWmTFnSXNICK7bWmyWqHpkykhFxc=; b=Dq6RcQpuUvPlKdklnuHewcoGii+IqlS9tJRoTH6SXga03BpU0ctLhS5TOgs06Z1U8hR7fJZbaLYk0VioWIl0BNhezQ/r2dmtSFriKVNtLKGWse7zQY4kissh1gNBO2CyZnzzyS+S7JOA9E96iQVvsbtzXFe0+c/sXXvSEBEAiEg= X-HE-Tag: 1670680443-536422 X-HE-Meta: U2FsdGVkX1/7lQaw4W3Hb/o5sMF/VPnDV+8GmqoJjA/rCskDgU0jw+/s4OTJrXuW3bI9OXgfthEYFbsc1ZU5Yg== Received-SPF: pass client-ip=216.40.44.11; envelope-from=yoni@rabkins.net; helo=relay.hostedemail.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, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_PASS=-0.001, T_SPF_HELO_TEMPERROR=0.01, UNPARSEABLE_RELAY=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:301108 Archived-At: Stefan Monnier writes: >> Write the configuration to the user's ~/.emacs in the same manner as " >> ;; custom-set-variables was added by Custom." or ";; Added by >> Package.el." I'm not a huge fan of this option for the sole reason that >> I don't appreciate packages automatically editing a file I manually >> edit. > > AFAIK people who don't like/want Emacs to edit their manually-edited > config file (such as myself) should and do set `custom-file` accordingly. Over the years, the people I've helped set up Emms have almost always been people who don't know elisp at all (makes sense when you think about it). I think that the people who know about, and use `custom-file' are also the people who don't need help setting up Emms. However, that doesn't mean that you are wrong. > So the better option seems very definitely to just save the config via > Custom: that's what it's for. I'll look at cus-edit.el to see how I can leverage Custom to do the saving and loading for me outside of the customize interface. I don't use it and am ignorant of it. >> Write the configuration to ~/.emacs.d/emms/auto-config.el. Emms would >> then look for that configuration file there during startup. This is >> cleaner, and can have the benefit of Emms being configured without a >> single line needing to be added by the user to their ~/.emacs. > > I personally dislike it when packages do such things because it's never > completely clear how it interacts with the settings I put into my own > manually-edited init file. > > Custom suffers from the same problems, of course, but once you've > learned how it works, then this carries over to all the packages > that use it. > >> I know that a bunch of packages store information in ~/.emacs.d/, just >> as Emms does. But is it acceptable practice to store configuration >> there too? > > There's no law against it. But as a user, I'd vote against it. That vote is important. Thank you for taking the time and effort to cast it. -- "Cut your own wood and it will warm you twice"