From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id eK4ZLmIvVGSh7AAASxT56A (envelope-from ) for ; Fri, 05 May 2023 00:19:14 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id IItKLWIvVGSlCQAAG6o9tA (envelope-from ) for ; Fri, 05 May 2023 00:19:14 +0200 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 8B06DF241 for ; Fri, 5 May 2023 00:19:14 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1puhHP-0004hZ-9R; Thu, 04 May 2023 18:18:27 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1puhHN-0004hP-E7 for help-guix@gnu.org; Thu, 04 May 2023 18:18:25 -0400 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1puhHL-0006B7-66 for help-guix@gnu.org; Thu, 04 May 2023 18:18:25 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id CBB5D240130 for ; Fri, 5 May 2023 00:18:19 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.de; s=2017; t=1683238699; bh=8oJkDNuExNaonuGl8+MqBG87HET62KUKAYjusIh6Z2o=; h=From:To:Cc:Subject:Date:From; b=ka6INCTMw/o5IgdW2h95gMBEnLk8/HHbRV3+ZD1EwMcSDa0PqplumbAqGthrDc0RX uehO05lGsxWGNxYZfIdvbfsTceUPYF9X0/WVSROsE+xJVVrDX+iFp7EFcM99ufSINN MEX2AAoYrV2ERNj9+bRz/7v9ZWiUMajhgTrA8QokE2A0+c+8ot1GnGnFpuiyO4GWEo XDMHaRYduVjdJ04Rtw+Ot4URll/Eec6emrFppw6TgQ+/o7JPnBgBSOedv7e13Vokax 0Er2mLgDcyBlGfv0no0bV0vJwGulcLRnrHhgF/z6zV1JhkTYoFCDqOY1r4DhOYBN/5 OQP/I3bYX7DaA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4QC7Vz01Wgz9rxB; Fri, 5 May 2023 00:18:18 +0200 (CEST) References: <87ednw4etd.fsf@gmail.com> From: Mekeor Melire To: =?utf-8?Q?Andr=C3=A9_A=2E_Gomes?= Cc: help-guix@gnu.org Subject: Re: Install and load new emacs package without restarting it Date: Thu, 04 May 2023 22:09:58 +0000 In-reply-to: <87ednw4etd.fsf@gmail.com> Message-ID: <871qjveo6r.fsf@posteo.de> MIME-Version: 1.0 Content-Type: text/plain; format=flowed Received-SPF: pass client-ip=185.67.36.66; envelope-from=mekeor@posteo.de; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: help-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1683238754; a=rsa-sha256; cv=none; b=Ujv+thAfrQ6oB+ulnCj7HeaIu0tMJ1PIFU/aPGfD6H8CHhR3JCrGLHXGxMDK7brWOzniQb yk0knbwLR6nru640mtgWW5pNejx7HE6R4JtgwVLEqdeWPJHSIieOlQyuIEiPTe4qPuJm50 RmkfnunfSGbRUc2uwj1BqvPx8VkTEQCniaCs5/PG5FPuec12xT09HQdUNvUKzfq+LoTkv7 EQVXhPHVNCT/GyT9OAIGC8D2R7C08MV9dlQbdhQLrHUBHz+FzTJv/K7cNaUoxkw4jseJbC xxNZtwMaPoL5AGYHBT2cyW/EZJ4Eg4Tn/J385HOGXZh6pQGQPEgzGsj4xAlFBg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.de header.s=2017 header.b=ka6INCTM; dmarc=pass (policy=none) header.from=posteo.de; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1683238754; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=NgoB61UeTiIX2SHGvZna/cMBXAwaPjkRzDjVzORly3M=; b=KJqazk96d1q3OfbiOpzRNNMi/U/HRdKdKFqdFT99f8obzi6hjR5xcP6OEC1CGsinzfBh9N M52VDMbQrS1hoRKe7I1ueHpvOQSIf3zYieCHu0xjAhbbnHM2QHmB5MbHvYAc/gmjOYjDy+ GyRvuB1UcWs9t3KsVT3ICEeV+MNae2N37+8U1/1tGldDffWah0C40/3Pj2Yo0ebClE/7QE qvgGe+70VDI7leLf9fnUy29cVwkgyKdXnkJeadD5nge2TuPSYJykW9Y13Jf674bi1NNgnj K7iftI8xRsiz7z7lIONRsHTy6VnZi9FI2AOBLHHDB8HJ3oYDCKwx+qPD3sG4bA== X-Migadu-Spam-Score: -7.54 X-Spam-Score: -7.54 X-Migadu-Queue-Id: 8B06DF241 X-Migadu-Scanner: scn0.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.de header.s=2017 header.b=ka6INCTM; dmarc=pass (policy=none) header.from=posteo.de; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-TUID: 6HgzJbMQfukV 2023-05-04 12:38 andremegafone@gmail.com: > Hi Guix, Hello! > I'm wondering whether it's possible to install an emacs package > and > enable it without restarting emacs. > > What I've tried: > > - $ guix install emacs-nix-mode > - Locate > /gnu/store/...emacs-nix-mode/share/emacs/site-lisp/nix-mode > - Run command dired-do-load from the directory above > > Unfortunately it doesn't quite work. It did load the package, > but it > prints the following error when trying to enable the mode. > > execute-extended-command: Cannot open load file: No such file or > directory, nix-mode I'm not very familiar with dired-do-load, but I guess, it loads the elisp-files sequentially or so. So, one of those files tries to load/require "nix-mode" but that file/feature has not been loaded yet. Instead, you can try one of these approaches: After installing emacs-nix-mode, type either: M-: (load "~/.guix-profile/share/emacs/site-lisp/nix-mode.../nix-mode.el") RET Or: M-: (add-to-list 'load-path "~/.guix-profile/share/emacs/site-lisp/nix-mode.../nix-mode.el") RET M-: (require 'nix-mode) RET Or, if you have emacs-guix installed, you could try: M-x guix-emacs-autoload-packages RET Good luck!