From: Yoni Rabkin <yoni@rabkins.net>
To: Akib Azmain Turja <akib@disroot.org>
Cc: emacs-devel <emacs-devel@gnu.org>
Subject: Re: best practices for implementing Emms configuration
Date: Sat, 10 Dec 2022 08:45:44 -0500 [thread overview]
Message-ID: <874ju3pe2f.fsf@rabkins.net> (raw)
In-Reply-To: <87mt7wmnam.fsf@disroot.org> (Akib Azmain Turja's message of "Sat, 10 Dec 2022 00:42:25 +0600")
Akib Azmain Turja <akib@disroot.org> writes:
> Yoni Rabkin <yoni@rabkins.net> writes:
>
>> Hello all,
>>
>> We are trying to make Emms (https://www.gnu.org/software/emms/) better
>> out of the box.
>>
>> The idea is to have the user invoke "M-x emms-setup", have Emms ask some
>> questions (check which player binaries the user has installed, which
>> metadata programs are installed, where the music is located, etc.), and
>> have Emms generate and write the appropriate elisp configuration.
>>
>> I can think of two approaches. I am wondering which, if any, would be
>> considered best practice:
>>
>> 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.
>
> This is better IMO. Just use Custom. The user can set 'custom-file'
> to redirect the extra line to somewhere else.
To be clear though: the goal isn't to present the user with one of the
customize-group interfaces; I don't use them and wouldn't force anyone
else to.
The idea is to tell the user to invoke "M-x emms-setup", have the user
answer a few y-or-n-p questions, and write the configuration based on
that.
>>
>> XOR
>>
>> 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.
>
> Not bad, but is there really any need to reinvent the wheel once again?
As above, I consider Emacs' customize interface to be a rather square
wheel (but then, I don't like org either, so I accept that the problem
may be me.)
Thank you for the input.
--
"Cut your own wood and it will warm you twice"
next prev parent reply other threads:[~2022-12-10 13:45 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-12-09 18:04 best practices for implementing Emms configuration Yoni Rabkin
2022-12-09 18:42 ` Akib Azmain Turja
2022-12-10 13:45 ` Yoni Rabkin [this message]
2022-12-10 15:46 ` Stefan Monnier
2022-12-09 19:23 ` Stefan Monnier
2022-12-09 23:46 ` Björn Bidar
2022-12-09 23:49 ` Stefan Monnier
2022-12-10 13:54 ` Yoni Rabkin
2022-12-10 14:35 ` Visuwesh
2022-12-10 14:36 ` Visuwesh
2022-12-10 17:56 ` [External] : " Drew Adams
2022-12-10 19:15 ` tomas
2022-12-10 0:10 ` Björn Bidar
2022-12-10 14:03 ` Yoni Rabkin
2022-12-11 8:02 ` Björn Bidar
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=874ju3pe2f.fsf@rabkins.net \
--to=yoni@rabkins.net \
--cc=akib@disroot.org \
--cc=emacs-devel@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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
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).