From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id OE31IF09fF/OXgAA0tVLHw (envelope-from ) for ; Tue, 06 Oct 2020 09:48:13 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id sH7DHF09fF/qcAAAB5/wlQ (envelope-from ) for ; Tue, 06 Oct 2020 09:48:13 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id DE19F9402B4 for ; Tue, 6 Oct 2020 09:48:12 +0000 (UTC) Received: from localhost ([::1]:34132 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kPjZq-0005UC-FO for larch@yhetil.org; Tue, 06 Oct 2020 05:48:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42552) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kPjZ2-0004eo-Cs for help-guix@gnu.org; Tue, 06 Oct 2020 05:47:20 -0400 Received: from ns13.heimat.it ([46.4.214.66]:41698) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kPjYz-0002vn-50 for help-guix@gnu.org; Tue, 06 Oct 2020 05:47:19 -0400 Received: from localhost (ip6-localhost [127.0.0.1]) by ns13.heimat.it (Postfix) with ESMTP id E671C3021B8; Tue, 6 Oct 2020 09:47:12 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at ns13.heimat.it Received: from ns13.heimat.it ([127.0.0.1]) by localhost (ns13.heimat.it [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 7V1pVyImDb-R; Tue, 6 Oct 2020 09:46:52 +0000 (UTC) Received: from bourrache.mug.xelera.it (unknown [93.56.169.211]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by ns13.heimat.it (Postfix) with ESMTPSA id C1AB93021B5; Tue, 6 Oct 2020 09:46:52 +0000 (UTC) Received: from roquette.mug.biscuolo.net (roquette [10.38.2.14]) by bourrache.mug.xelera.it (Postfix) with SMTP id 902807986CB; Tue, 6 Oct 2020 11:46:50 +0200 (CEST) Received: (nullmailer pid 6208 invoked by uid 1000); Tue, 06 Oct 2020 09:46:48 -0000 From: Giovanni Biscuolo To: zimoun Subject: Emacs config for "traditional" or Guix environment? In-Reply-To: <86o8ljeb3g.fsf@gmail.com> Organization: Xelera.eu References: <877dt7vuc8.fsf@roquette.i-did-not-set--mail-host-address--so-tickle-me> <87k0x652pb.fsf@roquette.i-did-not-set--mail-host-address--so-tickle-me> <874knir44a.fsf@gmail.com> <87sgb25n66.fsf@roquette.i-did-not-set--mail-host-address--so-tickle-me> <877dscpud6.fsf@gmail.com> <87lfgs310x.fsf@roquette.i-did-not-set--mail-host-address--so-tickle-me> <86sgb0s6ys.fsf@gmail.com> <87sgawv6ur.fsf@roquette.i-did-not-set--mail-host-address--so-tickle-me> <86o8ljeb3g.fsf@gmail.com> Date: Tue, 06 Oct 2020 11:46:47 +0200 Message-ID: <87lfgjit4o.fsf@roquette.i-did-not-set--mail-host-address--so-tickle-me> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Received-SPF: pass client-ip=46.4.214.66; envelope-from=g@xelera.eu; helo=ns13.heimat.it X-detected-operating-system: by eggs.gnu.org: First seen = 2020/10/06 05:47:13 X-ACL-Warn: Detected OS = Linux 3.11 and newer [fuzzy] 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-guix@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: help-guix@gnu.org Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Spam-Score: -2.11 X-TUID: 4Xika53PuoXx --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hello Simon, thank you for your patience and tips! This is a follow-up of things discussed in bug#43243 (now resolved). I'm posting this to help-guix in case someone finds it useful. This is a *very* quick summary of my bug report: I had a strange error with elfeed-org and after some investigation I realized I was still using old packages loaded from my ~/.emacs.d/elpa directory, installed using "use-package" before migrating to Guix's Emacs; I removed that directory and all is running as before. During the investigation I sent my redacted init.el, Simon commented it. The following is my follow-up. zimoun writes: > Dear, > > On Fri, 02 Oct 2020 at 20:08, Giovanni Biscuolo wrote: [...] >> ;; -*- mode: emacs-lisp -*- >> (unless (require 'guix-emacs nil 'noerror) >> (package-initialize)) >> (unless (require 'guix-emacs nil 'noerror) >> ;; package archives >> (when (>=3D emacs-major-version 24) >> (require 'package) >> (setq package-archives >> '(("GNU_ELPA" . "https://elpa.gnu.org/packages/") >> ("org" . "https://orgmode.org/elpa/") >> ("MELPA_Stable" . "https://stable.melpa.org/packages/") >> ("MELPA" . "https://melpa.org/packages/")) >> package-archive-priorities >> '(("GNU_ELPA" . 15) >> ("org" . 10) >> ("MELPA_Stable" . 5) >> ("MELPA" . 0))))) > > From my experience, I do not mix packages from Emacs archives and from > Guix because it often leads to weirdness =E2=80=93=E2=80=93 unexpected be= haviour at > least=E2=80=A6 Yes I perfectly understand that: *never* mix packages. What you see (and still I am using) is my attempt for a smooth migration from my "Debian+use-package" Emacs installation to a pure Guix one; since I'm using the same environment (packages+config) on all my machines *and* I'm quite conservative I wanted a configuration that "Just Worked" in all my environments (via git controlled dotfolder). This "multi enviroment" trick was suggested by a smart Emacs user: =2D-8<---------------cut here---------------start------------->8--- (if (require 'guix-emacs nil 'noerror) ; Code for Guix Emacs ; Code for non-Guix Emacs ) =2D-8<---------------cut here---------------end--------------->8--- and I adapted it to my needs without actually fully understand how it works :-O ...and it actually worked during my transition to a full Guix Emacs install, being a transition from a Debian+use-package 26.3 to the same version on Guix. Anyway, as far as I see, my current usage of "(unless (require 'guix-emacs nil 'noerror)..." actually prevents any code to be evaluated in my Guix Emacs environment. > Personally, I have removed the use of all the =E2=80=98package.el=E2=80=99 > functions and only use packages =E2=80=99emacs-*=E2=80=99 from Guix and t= hen configure > them using =E2=80=99with-eval-after-load=E2=80=99. I'm considering this, also, since now I do not need my old "multi env" config anymore and I like simple and clean solutions, easier to debug. Guix is the solution to package management, I migrated, forget the past. Full stop. :-D [...] > (Note I do not know about TRAMP, so maybe =E2=80=99tramp-remote-path=E2= =80=99 should be > evaluated at init time and not at use time. Aside the fact that TRAMP > is part of vanilla Emacs, AFAICT.) Yes it is part of vanilla Emacs but the upstream author suggested me to install the upstream version, that solved an issue I had with /adb:/ on 26.3 vanilla Emacs from Guix. [...] > From my understanding, you are misusing =E2=80=99use-package=E2=80=99. O= r you could > rewrite: > > (with-eval-after-load 'org > (require 'org-tempo)) > > (And I am personally doing that.) [...] > Last, your starting time should be pretty long, right? Hum? IMHO, it > could be really faster if you use =E2=80=99with-eval-after-load=E2=80=99 = or > =E2=80=99(use-package foo :defer t =E2=80=A6)=E2=80=99 and so enjoy the s= peedup by =E2=80=9Clazy=E2=80=9D > evaluation. Thank you, I'll study with-eval-after-load. Fast starting time is absolutely not a priority for me, I usually use Emacs in daemon mode for several days... but it surely helps.=20 [...] Thanks a lot! Giovanni. =2D-=20 Giovanni Biscuolo Xelera IT Infrastructures --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQJABAEBCgAqFiEERcxjuFJYydVfNLI5030Op87MORIFAl98PQgMHGdAeGVsZXJh LmV1AAoJENN9DqfOzDkSTOoP/jYbbhNwub+43K6JFjcUjrsnebwfoZNqsveqQq8R ENFOdo2tXy1ba5eATDRM4sbRjqm3UHmqE3rTqqrWGwxCocPJ6bVtSGB6CgcdpBCZ jAKxFyCmH7haWIua1+FpVKOCpg9J8hUCSt7bhNObjS+udCR26TCWKCUWh1tlBwzg kQY0VJz8zRPR0ykDpa5eiUDLc911wx4kxN1Sn+DDsJpf6fOqagx6XXfBdS5yAa9R /6XlkKUkp9BB1UtfFRVCyQ9OfoZIo1AV/Lk9mzszgujKyJVXotnZHvY7Tob2A/Xc 42wFCFBg8nGuixtxUlZHWSiCHtbmqnmPSNzyZXpofJTu91LbNxG9FV601wT8+eea 92SOKo68YiIvT5L8cqBgqVsqAxH/03Y7m+l5SydoX/9aU4zHWHKUkJXgFVLiGAlL K25pAWytHDR+43qdZnbEog71joR+TmyU/vWbh/36OOl4RAVfcQ1R1Krw8AhnXNZJ S0u9IcA1ZQpV87Z9ccf7wcxxlKTr83uA7BM2tYImWdjIkiUg+c0H5I/CbvBPWcLL 6PRtYl3jq/Vbx21FcrwT5VhURawLeIr+nYNl3z9CtiDJXmMfwqXSyY6qf8Rm43pm dmd4nPFXAJk7/fG6CT+KjUBCykA3fDq+7Hb4MBeuriZG2H8YRejgTEiCr8KtnAWn R6oC =OmEt -----END PGP SIGNATURE----- --=-=-=--