From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Yuan Fu Newsgroups: gmane.emacs.devel Subject: Re: [External] : Re: Propose to add setup-wizard.el to ELPA Date: Mon, 3 Jan 2022 17:50:55 -0800 Message-ID: <7BD42724-519F-406C-ABB2-CC50E70CD837@gmail.com> References: <8735m6o349.fsf@yahoo.com> <87pmpamlon.fsf@yahoo.com> <834k6mdu7q.fsf@gnu.org> <87v8z12ud8.fsf@athena.silentflame.com> Mime-Version: 1.0 (Mac OS X Mail 15.0 \(3693.40.0.1.81\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21817"; mail-complaints-to="usenet@ciao.gmane.io" Cc: "emacs-devel@gnu.org" , Stefan Kangas , Drew Adams , Sean Whitton To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Jan 04 02:52:52 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 1n4Z0O-0005Tm-D4 for ged-emacs-devel@m.gmane-mx.org; Tue, 04 Jan 2022 02:52:52 +0100 Original-Received: from localhost ([::1]:35618 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n4Z0M-0003Sq-Se for ged-emacs-devel@m.gmane-mx.org; Mon, 03 Jan 2022 20:52:50 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:47376) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n4YyZ-0002ks-HH for emacs-devel@gnu.org; Mon, 03 Jan 2022 20:50:59 -0500 Original-Received: from [2607:f8b0:4864:20::102c] (port=38601 helo=mail-pj1-x102c.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n4YyX-0008FZ-Tt for emacs-devel@gnu.org; Mon, 03 Jan 2022 20:50:59 -0500 Original-Received: by mail-pj1-x102c.google.com with SMTP id l10-20020a17090a384a00b001b22190e075so33988455pjf.3 for ; Mon, 03 Jan 2022 17:50:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=6Qh5RwRfetdcy4egxEYlaeLnA7kzz4PO2v/acUCYzEY=; b=CyoM8UEZ6ueJWQk5t8Kub4VrglR7TGiAPBdRVjbjjrRelqytUwQuGBgeEhDCU5qoXn amEb60MRZDssEjErQTkP2UuhPqG9cqaZuadc8Jo68jgPoLoIg7H87/crKKi8cwyjlx6r NAFwSsPzk8PZyiFTPg65o75OV4duh0XT6EY2PXFNP6JpCFz0psVBEVf26bW7afNTn0/4 +SGGoAcV+dy42EmNRI6NMVUcju+ZaHjoumWBvUX6bslbOHvGvstWe6cjr3UuiYyOfa5t +O2Z3qeokihlHiHmwKcqsovX5WM3e/pRn39c0dGMOyyHyEFhG3HM3FhaHmDHODS4mg27 irjA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=6Qh5RwRfetdcy4egxEYlaeLnA7kzz4PO2v/acUCYzEY=; b=DtayRNtDHYF2ftffgp20HYV3Zo2oStfFWfFeUgN6eOQioQ9Hvhw23GUMWqDY5iCrob DDth6GUF1gWfze8QcMV49ZUHD/xzGs46KKJAQxTGe4Ydsn9vDbF5nzUyrjsTKYx1zpqt S+Ans6PWR/9S6A3/70M0K2j0Jpl2Wx3QdoCpdMMn0aZ+1adi6t6nZUgj7hkYLaiE26gM 4tj1x5Xx4IpKCvtBdEqtodIabWdQri2CJVcuIq2vn4khp5RqFU8YvSe+0/AixG4vupmd cW5La7Q5veU7od7QUwV1fk6gsPHa2ZX/tjYNFyfoenwAdqgPdzs3cWvQkyMAFVhZGvqu oRIg== X-Gm-Message-State: AOAM531lFFXxDV9SQKusmulhbRBBi7xKLMLUxfAoFzW5isPfM6mNruib MTNXN9eqoeCCQjZzBONVhEw= X-Google-Smtp-Source: ABdhPJwTIfpuqR028rmSDoJ1LAdHt2bcrG+ny3ZlWoUL3FCc5Hos1P7ezaRD2IG6bnjsei88KiV0sA== X-Received: by 2002:a17:902:c40f:b0:148:f2e0:3f6e with SMTP id k15-20020a170902c40f00b00148f2e03f6emr46876300plk.65.1641261056528; Mon, 03 Jan 2022 17:50:56 -0800 (PST) Original-Received: from smtpclient.apple ([2600:1700:2ec7:8c90:4cba:2447:3be8:afa7]) by smtp.gmail.com with ESMTPSA id m16sm42103734pfk.32.2022.01.03.17.50.55 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 03 Jan 2022 17:50:56 -0800 (PST) In-Reply-To: X-Mailer: Apple Mail (2.3693.40.0.1.81) X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::102c (failed) Received-SPF: pass client-ip=2607:f8b0:4864:20::102c; envelope-from=casouri@gmail.com; helo=mail-pj1-x102c.google.com X-Spam_score_int: 6 X-Spam_score: 0.6 X-Spam_bar: / X-Spam_report: (0.6 / 5.0 requ) DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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" Xref: news.gmane.io gmane.emacs.devel:284110 Archived-At: > On Jan 3, 2022, at 8:05 AM, Stefan Monnier = wrote: >=20 > Sean Whitton [2022-01-02 23:42:11] wrote: >> On Sun 02 Jan 2022 at 05:14pm -05, Stefan Kangas wrote: >>> Drew Adams writes: >>>> Customize should not write to your init file ... That's a bad = Emacs >>>> design choice, IMO. It especially should not be the default = behavior. >>> +1, FWIW. >> Hmm, then where should it write to? >=20 > Please rename this thread which is orthogonal to `setup-wizard.el`. > (`setup-wizard.el` should simply set the variable via Custom and > then ask Custom to save the result, so `setup-wizard.el` shouldn't = know > or care where or how the result is saved). Custom cannot save some of the results produced by the wizard, for = example, key bindings and Unicode fonts. And I don=E2=80=99t know if = package-selected-packages is enough for packages. Here is an example for = the generated configuration: ;; Load modus-operandi theme (load-theme 'modus-operandi) ;; Set bindings for copy/cut/paste. (global-set-key (kbd "s-c") #'kill-ring-save) (global-set-key (kbd "s-x") #'kill-region) (global-set-key (kbd "s-v") #'yank) ;; Display line number. (global-display-line-numbers-mode 1) ;; Set default font. (set-face-attribute 'default nil :family "IBM Plex Mono") ;; Set variable-pitch font. (set-face-attribute 'variable-pitch nil :family "Charter") ;; Set CJK font. (dolist (charset '(kana han cjk-misc)) (set-fontset-font t charset (font-spec :family "Source Han Serif"))) ;; Set font size. (set-face-attribute 'default nil :height 130) ;; Use linear undo style. (global-set-key [remap undo] #'undo-only) ;; Install and enable =E2=80=98ivy-mode=E2=80=99 and =E2=80=98counsel-mode= =E2=80=99. (progn (require 'package) (unless (package-installed-p 'ivy) (package-install 'ivy)) (package-activate 'ivy) (require 'ivy) (ivy-mode)) (setq enable-recursive-minibuffers t ivy-use-selectable-prompt t = ivy-use-virtual-buffers t) (progn (require 'package) (unless (package-installed-p 'counsel) (package-install 'counsel)) (package-activate 'ivy) (require 'counsel) (counsel-mode)) Yuan=