From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Tim Landscheidt Newsgroups: gmane.emacs.help Subject: Re: Install packages picked up from a list automatically. Date: Fri, 25 Dec 2020 08:31:59 +0000 Organization: http://www.tim-landscheidt.de/ Message-ID: <87k0t670cg.fsf@passepartout.tim-landscheidt.de> References: Mime-Version: 1.0 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="1014"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) Cc: help-gnu-emacs@gnu.org To: Hongyi Zhao Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Fri Dec 25 09:33:15 2020 Return-path: Envelope-to: geh-help-gnu-emacs@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 1ksiXD-00009q-Lk for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 25 Dec 2020 09:33:15 +0100 Original-Received: from localhost ([::1]:40874 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ksiXC-0001xY-Ni for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 25 Dec 2020 03:33:14 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36396) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ksiW6-0001wr-QX for help-gnu-emacs@gnu.org; Fri, 25 Dec 2020 03:32:06 -0500 Original-Received: from andalucia.tim-landscheidt.de ([2a01:4f8:1c1c:d4d0::1]:44538) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ksiW4-00019s-5F for help-gnu-emacs@gnu.org; Fri, 25 Dec 2020 03:32:06 -0500 Original-Received: from dslb-090-186-126-124.090.186.pools.vodafone-ip.de ([90.186.126.124]:39556 helo=passepartout.tim-landscheidt.de) by andalucia.tim-landscheidt.de with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1ksiW0-0004lB-5E; Fri, 25 Dec 2020 09:32:00 +0100 In-Reply-To: (Hongyi Zhao's message of "Thu, 24 Dec 2020 21:37:20 +0800") Received-SPF: pass client-ip=2a01:4f8:1c1c:d4d0::1; envelope-from=tim@tim-landscheidt.de; helo=andalucia.tim-landscheidt.de X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:126758 Archived-At: Hongyi Zhao wrote: > [=E2=80=A6] > I'm a thorough beginner as for emacs lisp. Could you please give me > some hints/notes/comments on the pros can cons of the above two > mentioned methods? Thanks in advance. Unwanted advice: I would not (try to) install packages as part of your initialization. These might fail or install incompatible versions that you did not expect. Even if they succeed they require network connectivity and slow down Emacs's start-up. I would separate two phases: 1. Install Emacs, distribution-provided Emacs packages, your .emacs and other initialization files, and (M)ELPA-pro- vided Emacs packages, the latter either by copying them from your own "cache" (if they do not depend on the ma- chine's architecture) or installing them on the command line. You can use tools like Ansible to automate this process so that you can just point Ansible at a host and it will do everything necessary (you could, of course, also write such a script in Emacs Lisp :-)). 2. Use Emacs everyday with as few external dependencies as possible. If Emacs starts up, it should do so quickly and never have to wait for some other machine. Tim