[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Emacs Modular Configuration: the preferable way.
From: |
Emanuel Berg |
Subject: |
Re: Emacs Modular Configuration: the preferable way. |
Date: |
Sat, 26 Jun 2021 08:58:15 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
Arthur Miller wrote:
>> All that can't possibly be less error prone than a simple
>> string concat with `format', besides what errors exactly
>> are we trying to avoid?
>
> "All that" was far less than what you had :). I do think it
> is less error prone.
>
> It lets me type less of long paths, then if I was typing and
> concating strings. As you see I have setup one directory,
> "etc", and everything is relative to that one. Instead of
> typing and concating every file name for every directory and
> file, I can use that parth as a variable. If i decide to
> change that directory I don't need to do it in 20 different
> places and re-type everything, I can just type it in one
> place. Even with search-replace I think it is more error
> prone to have it the way you do, than to have just one place
> to edit.
?
I'm not retyping any paths either, that's the whole point
(lisp-dir (format "%s/lisp" emacs-dir))
(init-dir (format "%s/emacs-init" emacs-dir))
(erc-dir (format "%s/erc" init-dir))
(gnus-dir (format "%s/gnus" init-dir))
(ide-dir (format "%s/ide" init-dir))
(w3m-dir (format "%s/w3m" init-dir))
I retype variable names of the variables that hold them but
that's another thing, if I make a typo there Emacs should warn
me somewhere along the way.
And more than that, it is just a principle which is sound to
always uphold not duplicate the same data.
--
underground experts united
https://dataswamp.org/~incal
- Re: Emacs Modular Configuration: the preferable way., (continued)
- Re: Emacs Modular Configuration: the preferable way., Arthur Miller, 2021/06/21
- Re: Emacs Modular Configuration: the preferable way., Emanuel Berg, 2021/06/21
- Re: Emacs Modular Configuration: the preferable way., Jean Louis, 2021/06/21
- Re: Emacs Modular Configuration: the preferable way., Arthur Miller, 2021/06/22
- Re: Emacs Modular Configuration: the preferable way.,
Emanuel Berg <=
Re: Emacs Modular Configuration: the preferable way., Eli Zaretskii, 2021/06/21
- Re: Emacs Modular Configuration: the preferable way., Philip Kaludercic, 2021/06/21
- Re: Emacs Modular Configuration: the preferable way., Eli Zaretskii, 2021/06/21
- RE: [External] : Re: Emacs Modular Configuration: the preferable way., Drew Adams, 2021/06/21
- Re: [External] : Re: Emacs Modular Configuration: the preferable way., Emanuel Berg, 2021/06/21
- Re: [External] : Re: Emacs Modular Configuration: the preferable way., Eli Zaretskii, 2021/06/21
- FW: [External] : Re: Emacs Modular Configuration: the preferable way., Drew Adams, 2021/06/21
- Re: FW: [External] : Re: Emacs Modular Configuration: the preferable way., Emanuel Berg, 2021/06/25
Re: Emacs Modular Configuration: the preferable way., tomas, 2021/06/21
Re: Emacs Modular Configuration: the preferable way., Emanuel Berg, 2021/06/21