From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jean Louis Newsgroups: gmane.emacs.help Subject: Re: How to dump Emacs and use as application snapshot? Date: Mon, 2 Nov 2020 19:51:18 +0300 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15024"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mutt/+ (1036f0e) (2020-10-18) Cc: Help Gnu Emacs mailing list , Stefan Monnier To: Corwin Brust Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon Nov 02 17:52:53 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 1kZd4d-0003k7-GC for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 02 Nov 2020 17:52:51 +0100 Original-Received: from localhost ([::1]:34504 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kZd4X-0002cj-0T for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 02 Nov 2020 11:52:46 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48748) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kZd3G-0002aJ-FU for help-gnu-emacs@gnu.org; Mon, 02 Nov 2020 11:51:26 -0500 Original-Received: from static.rcdrun.com ([95.85.24.50]:39213) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kZd3E-0003UE-9B for help-gnu-emacs@gnu.org; Mon, 02 Nov 2020 11:51:25 -0500 Original-Received: from localhost ([::ffff:197.157.0.60]) (AUTH: PLAIN admin, TLS: TLS1.2,256bits,ECDHE_RSA_AES_256_GCM_SHA384) by static.rcdrun.com with ESMTPSA id 00000000002A0B40.000000005FA03909.00005457; Mon, 02 Nov 2020 16:51:20 +0000 Content-Disposition: inline In-Reply-To: Received-SPF: pass client-ip=95.85.24.50; envelope-from=bugs@gnu.support; helo=static.rcdrun.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/11/02 11:37:33 X-ACL-Warn: Detected OS = Linux 3.11 and newer [fuzzy] X-Spam_score_int: -3 X-Spam_score: -0.4 X-Spam_bar: / X-Spam_report: (-0.4 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_SORBS_WEB=1.5, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no 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:124949 Archived-At: * Corwin Brust [2020-11-02 17:38]: > I think you may find that the documentation for use-package is quite > helpful, with plan language narratives and many usage examples. I'm > not attempting to compare the leaf to use-package here- use-package > has been around for many years and quite a numberr of users have > documented their successes (and frustrations) with it. Even if you > feel strongly that leaf will be preferable for you, I recommend > starting with the main README file for use-package[0]; from what I've > seen the leaf syntax will in many cases the syntax will be identical > and and many authors have contributed, directly to the documentation > and publishing their configurations using it, blogging, etc.. Thank you for more enlightenment. I have suggested to author to make a code generation feature. If user who is not a programmer needs to understands so much about programming like leaf is exposing it then user will not need to ask anybody, can even write the new leaf or whatever oneself. What I expect from Emacs is useful customization like Leaf Group customization or code generation by using customization. One could then choose the package name and would get various options shortly explained that user can turn on or off. > You can anonomously retrieve the use-package project (including the > README.md file where I recommend starting) without visiting any > website, using a command such as: > > git clone https://github.com/jwiegley/use-package.git Thanks I do that often with --depth 1 option so that I get less bytes pulled for nothing. > The most important advantage from use-package for improving your > load-time will likely be the :defer keyword. This can be complicated > but fortunately use-package will generally "do the math" for us, such > that in most cases I'm able to write simple forms like: > > (use-package name-of-a-package > :config > (forms-to-run-before-require) > (can-go-here) > :init > (forms-to-run-after-require) > (can-go-here)) I have tried it once and gave up. The real problem is I think loading of files instead of making packages myself. So I load too many files that I need for my working environment. If I make packages, how I understand it, autoload functions will automatically be invoked or package will be loaded when I invoke the function. That would minimize startup times. Am I right there? -- There are 36 messages yet in my incoming mailbox.