[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [External] : Re: Propose to add setup-wizard.el to ELPA
From: |
Yuan Fu |
Subject: |
Re: [External] : Re: Propose to add setup-wizard.el to ELPA |
Date: |
Mon, 3 Jan 2022 17:50:55 -0800 |
> On Jan 3, 2022, at 8:05 AM, Stefan Monnier <monnier@iro.umontreal.ca> wrote:
>
> Sean Whitton [2022-01-02 23:42:11] wrote:
>> On Sun 02 Jan 2022 at 05:14pm -05, Stefan Kangas wrote:
>>> Drew Adams <drew.adams@oracle.com> 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?
>
> 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’t 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 ‘ivy-mode’ and ‘counsel-mode’.
(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
- RE: FW: [External] : Re: Propose to add setup-wizard.el to ELPA, (continued)
- Re: FW: [External] : Re: Propose to add setup-wizard.el to ELPA, tomas, 2022/01/05
- RE: FW: [External] : Re: Propose to add setup-wizard.el to ELPA, Drew Adams, 2022/01/05
- Re: FW: [External] : Re: Propose to add setup-wizard.el to ELPA, address@hidden, 2022/01/05
- Re: FW: [External] : Re: Propose to add setup-wizard.el to ELPA, Jean Louis, 2022/01/07
- RE: FW: [External] : Re: Propose to add setup-wizard.el to ELPA, Drew Adams, 2022/01/03
- Re: FW: [External] : Re: Propose to add setup-wizard.el to ELPA, Stefan Monnier, 2022/01/03
- Re: [External] : Re: Propose to add setup-wizard.el to ELPA,
Yuan Fu <=
- Re: [External] : Re: Propose to add setup-wizard.el to ELPA, Po Lu, 2022/01/03
- Re: [External] : Re: Propose to add setup-wizard.el to ELPA, Stefan Monnier, 2022/01/03
- Re: [External] : Re: Propose to add setup-wizard.el to ELPA, Yuan Fu, 2022/01/03
- Re: [External] : Re: Propose to add setup-wizard.el to ELPA, Stefan Monnier, 2022/01/04
- Re: [External] : Re: Propose to add setup-wizard.el to ELPA, Lars Ingebrigtsen, 2022/01/04
- Re: [External] : Re: Propose to add setup-wizard.el to ELPA, Sean Whitton, 2022/01/04
- Re: [External] : Re: Propose to add setup-wizard.el to ELPA, Po Lu, 2022/01/04
- Re: [External] : Re: Propose to add setup-wizard.el to ELPA, Lars Ingebrigtsen, 2022/01/05
- Re: [External] : Re: Propose to add setup-wizard.el to ELPA, Sean Whitton, 2022/01/06
- Re: Propose to add setup-wizard.el to ELPA, Po Lu, 2022/01/02