From: Emanuel Berg via Users list for the GNU Emacs text editor <help-gnu-emacs@gnu.org>
To: help-gnu-emacs@gnu.org
Cc: emacs-erc@gnu.org
Subject: Re: Set the default-directory dynamically according to the buffer-file-name.
Date: Thu, 30 Sep 2021 05:37:03 +0200 [thread overview]
Message-ID: <87fstmohsw.fsf@zoho.eu> (raw)
In-Reply-To: CAGP6PO+fkzfOBOgaWN-Ec=yoWdZuUc5qLyyRxMb2wrCimVBE-Q@mail.gmail.com
Hongyi Zhao wrote:
> Yes, that's it. So, my code snippet is unnecessary.
I have 100+ Elisp files [1] and if everything unnecessary was
to be identified and dropped I think that would mean -25 files
or more :)
But I got an idea recently that I told you about already, but
I can tell you again, only I only implemented it to a very
small degree so far (if I'll ever complete the intention),
anyway it is a good idea, and simple as well, namely, keep all
configuration (within a field) in _one_ file, and all
extensions (within the same field) in other, separate files -
that way people can browse the extensions, and use it if they
like it, or tell me if it is, in your words, "unnecessary" -
I don't think they will, but chances are better since no one
wants to browse some other guy's mere options ...
Also with this configuration/extension split on can easily add
the extensions to a place like the EmacsWiki, just ship it
with no prior edit needed!
If only I had come up with this idea 10~15 years ago. Regrets,
I have but a few ... No, just kidding :) A detail of course.
I only did it for ERC so far, I think? Have a look
https://dataswamp.org/~incal/emacs-init/erc/
[1] https://dataswamp.org/~incal/emacs-init/
--
underground experts united
https://dataswamp.org/~incal
next prev parent reply other threads:[~2021-09-30 3:37 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-09-29 14:31 Set the default-directory dynamically according to the buffer-file-name Hongyi Zhao
2021-09-29 14:50 ` Hongyi Zhao
2021-09-29 15:31 ` Tassilo Horn
2021-09-30 1:08 ` Hongyi Zhao
2021-09-30 3:37 ` Emanuel Berg via Users list for the GNU Emacs text editor [this message]
2021-09-30 7:00 ` Hongyi Zhao
2021-09-30 7:39 ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-09-30 8:54 ` Hongyi Zhao
2021-09-30 9:58 ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-09-29 15:47 ` [External] : " Drew Adams
2021-10-01 4:41 ` Hongyi Zhao
2021-10-01 7:09 ` Emanuel Berg via Users list for the GNU Emacs text editor
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=87fstmohsw.fsf@zoho.eu \
--to=help-gnu-emacs@gnu.org \
--cc=emacs-erc@gnu.org \
--cc=moasenwood@zoho.eu \
/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.
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).