mirror of
https://github.com/RubyMetric/chsrc
synced 2025-06-17 09:06:58 +08:00
46 lines
1.4 KiB
C
46 lines
1.4 KiB
C
/** ------------------------------------------------------------
|
||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||
* -------------------------------------------------------------
|
||
* File Authors : Aoran Zeng <ccmywish@qq.com>
|
||
* Contributors : Nil Null <nil@null.org>
|
||
* Created On : <2023-10-10>
|
||
* Last Modified : <2024-11-21>
|
||
* ------------------------------------------------------------*/
|
||
|
||
static MirrorSite_t
|
||
EmacsChina = {
|
||
"emacschina", "EmacsChina", "Emacs China 社区", "https://elpamirror.emacs-china.org/",
|
||
{SKIP, ToFill, ToFill, NULL}
|
||
};
|
||
|
||
/**
|
||
* @update 2023-09-10
|
||
* @note Emacs用户往往只需要一次性换源,只会极少次调用 chsrc,我们只给用户提供文档
|
||
*/
|
||
Source_t
|
||
wr_emacs_sources[] = {
|
||
{&UpstreamProvider, NULL},
|
||
{&Sjtug_Zhiyuan, "https://mirrors.sjtug.sjtu.edu.cn/docs/emacs-elpa"},
|
||
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/help/elpa/"},
|
||
{&Bfsu, "https://mirrors.bfsu.edu.cn/help/elpa/"},
|
||
{&Ustc, "https://mirrors.ustc.edu.cn/help/elpa.html"},
|
||
{&Zju, "https://mirrors.zju.edu.cn/docs/elpa/"},
|
||
{&EmacsChina, "https://elpamirror.emacs-china.org/"}
|
||
};
|
||
def_sources_n(wr_emacs);
|
||
|
||
|
||
void
|
||
wr_emacs_setsrc (char *option)
|
||
{
|
||
chsrc_yield_source_and_confirm (wr_emacs);
|
||
|
||
chsrc_note2 ("Emacs换源涉及Elisp,需要手动查阅并换源:");
|
||
say (source.url);
|
||
|
||
ProgMode_ChgType = ChgType_Manual;
|
||
chsrc_conclude (&source);
|
||
}
|
||
|
||
def_target_s (wr_emacs);
|