From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Corwin Brust Newsgroups: gmane.emacs.help Subject: Re: How to dump Emacs and use as application snapshot? Date: Mon, 2 Nov 2020 08:37:43 -0600 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26156"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Help Gnu Emacs mailing list , Stefan Monnier To: Jean Louis Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon Nov 02 15:38:25 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 1kZayW-0006hK-SG for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 02 Nov 2020 15:38:24 +0100 Original-Received: from localhost ([::1]:45408 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kZayV-0008SO-Uo for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 02 Nov 2020 09:38:23 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41558) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kZay5-0008K5-Nn for help-gnu-emacs@gnu.org; Mon, 02 Nov 2020 09:37:57 -0500 Original-Received: from mail-ej1-f53.google.com ([209.85.218.53]:38659) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kZay3-00037x-Hi for help-gnu-emacs@gnu.org; Mon, 02 Nov 2020 09:37:57 -0500 Original-Received: by mail-ej1-f53.google.com with SMTP id za3so19186654ejb.5 for ; Mon, 02 Nov 2020 06:37:55 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=7wNzVPpvQCkUkXzzzMQ0REoeNePznBEYDmFL39YVxEI=; b=E8a+QUtgbuQzUDy5Qn52UwxzFlwiGHUEnicTERv0BfuG33ky6p7mBlilpBhcYvsYtg 14FaW4+b9jfosNCXLdKhbJRav3Xxni3Xb+571jIaZCBi10NDd1r81LWxnTcPxhfHW17D sXEV3M4NJL2ooEiBA3R8Ev/lqFZpA4BXxXOdhhc/sMKrc2W9UEO4Lb1OQLPCf9zemk7S Asja7aiDadKDlsI8VaWmc8b0QJBT0u1xQPU4+GEkw8AmogHbbA7DQ9f8QT5qZYxIyESw 4dvGwRFkE6T+ryx6uhjlWhbt9gd1nTESvSKmuWL3fqJGVLLEPwitDyGBwdDNI/O58R+h dGeQ== X-Gm-Message-State: AOAM532SuDVFi+wBO7SsUEY54kICwDNgyJ5d9N91C02Y5CaATSEje3vu AANUaBdNn71rFclbP1PV5LK26686FIgheXHBghM= X-Google-Smtp-Source: ABdhPJwyTGwi1kvelMs0gNeyGHqrcf3TNvIuzB7qgtVsK8NgdMXN3UO/QPy5LNlsKpHpBtKdjnfenlvfNDgXoH/od+k= X-Received: by 2002:a17:906:d9dd:: with SMTP id qk29mr6312537ejb.487.1604327873852; Mon, 02 Nov 2020 06:37:53 -0800 (PST) In-Reply-To: Received-SPF: pass client-ip=209.85.218.53; envelope-from=mplscorwin@gmail.com; helo=mail-ej1-f53.google.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/11/02 09:37:54 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -13 X-Spam_score: -1.4 X-Spam_bar: - X-Spam_report: (-1.4 / 5.0 requ) BAYES_00=-1.9, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=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:124944 Archived-At: Hi Jean, On Mon, Nov 2, 2020 at 6:47 AM Jean Louis wrote: > > leaf is for now complex for me to understand. I need time to > understand it. > Given that this feature seems destined to reach Emacs core in the near future, I strongly recommend making time for this sooner vs exploring alternatives before investing that time. 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.. 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 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)) All the best, Corwin