From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?B?5a6L5paH5q2m?= Subject: Re: [PATCH] gnu: geiser: Symlink Guile modules to the right 'guilesitedir'. Date: Sun, 21 Jun 2015 21:21:25 +0800 Message-ID: <87ioahtcx6.fsf@gmail.com> References: <1434889965-10697-1-git-send-email-iyzsong@gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:57207) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z6fBH-0007F4-Kw for guix-devel@gnu.org; Sun, 21 Jun 2015 09:21:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z6fBC-0003uw-8b for guix-devel@gnu.org; Sun, 21 Jun 2015 09:21:03 -0400 Received: from mail-pa0-x236.google.com ([2607:f8b0:400e:c03::236]:36549) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z6fBB-0003ua-VK for guix-devel@gnu.org; Sun, 21 Jun 2015 09:20:58 -0400 Received: by paceq1 with SMTP id eq1so91323789pac.3 for ; Sun, 21 Jun 2015 06:20:57 -0700 (PDT) Received: from localhost ([108.61.250.36]) by mx.google.com with ESMTPSA id kk6sm16760534pdb.94.2015.06.21.06.20.55 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 21 Jun 2015 06:20:55 -0700 (PDT) In-Reply-To: <1434889965-10697-1-git-send-email-iyzsong@gmail.com> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: guix-devel@gnu.org --=-=-= Content-Type: text/plain The previous patch was intend to fix a issue that manually spawned Guile doesn't know the geiser module. When discuss this issue in IRC with alezost, I suddenly notice that add a simple '(require 'geiser-install)' to my init.el make it work. Here is the new patch for '/etc/emacs/site-start.el' (not tested yet!): --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-system-emacs-site-file-Use-geiser-install-to-load-ge.patch >From d26e6299c9d468ff4a745a7efe9ea4f1a5d7c63a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=8B=E6=96=87=E6=AD=A6?= Date: Sun, 21 Jun 2015 21:09:42 +0800 Subject: [PATCH] system: emacs-site-file: Use 'geiser-install to load geiser. Suggested by Alex Kost . * gnu/system.scm (emacs-site-file): Use 'geiser-install to load geiser instead of setting 'geiser-guile-load-path' manually. --- gnu/system.scm | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/gnu/system.scm b/gnu/system.scm index 565d6c1..82b7fbc 100644 --- a/gnu/system.scm +++ b/gnu/system.scm @@ -391,12 +391,8 @@ settings for 'guix.el' to work out-of-the-box." ;; Attempt to load guix.el. (require 'guix-init nil t) - (when (require 'geiser-guile nil t) - ;; Make sure Geiser's Scheme modules are in Guile's search - ;; path. - (add-to-list - 'geiser-guile-load-path - "/run/current-system/profile/share/geiser/guile"))))) + ;; Attempt to load geiser. + (require 'geiser-install nil t)))) (define (emacs-site-directory) "Return the Emacs site directory, aka. /etc/emacs." -- 2.2.1 --=-=-=--