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 ms5.migadu.com with LMTPS id qBNANivPdGM7UwAAbAwnHQ (envelope-from ) for ; Wed, 16 Nov 2022 12:53:16 +0100 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 cJNONSvPdGPDJAAAG6o9tA (envelope-from ) for ; Wed, 16 Nov 2022 12:53:15 +0100 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 75D1D385E5 for ; Wed, 16 Nov 2022 12:53:15 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ovGy6-0008Ii-Mp; Wed, 16 Nov 2022 06:52:38 -0500 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 1ovGy5-0008II-9r for help-guix@gnu.org; Wed, 16 Nov 2022 06:52:37 -0500 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ovGy2-0007MF-59 for help-guix@gnu.org; Wed, 16 Nov 2022 06:52:36 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 3A80124002A for ; Wed, 16 Nov 2022 12:52:31 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.de; s=2017; t=1668599551; bh=+Wiva0w4lmobL2ce4Kh+GTWUpAkABdMovEJkp1Md1yM=; h=From:To:Cc:Subject:Date:From; b=ByMBnxe8+eqTohK6l/CgFkpSwpY/wSnjXjrirqcsQggof2MdVP4Q9ZSvoFZ7a49eA 0lbNWVZnZZEC5TMZVbSDGcjyLq/IlI+kiksQegVICTYuJ96BkChzj63ruGCS0HIAym B6EsOjRn7H6+4h9BmoByQHzsRMy/H6//rqqFSMBhgoSvEZ34AFy15rhV3eRpwOLRc1 2ya4aYZPj1fjsJdmPlf59YieCSf7GT8+Jx1NfCKo+hPW1Q95O4sLDkFM96OxQ8dtVK 6UMshPKZA936VeSaYJGw7ygCKvRTnRaBrjiE5mHN1ajj5dlTCN/lr63dmkEcj3Dsjr i0Qec4P6ojpCA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4NC1cq6BHrz6tm4; Wed, 16 Nov 2022 12:52:27 +0100 (CET) References: <87wn7vjg8o.fsf@posteo.de> From: Mekeor Melire To: Mekeor Melire Cc: help-guix Subject: Re: Emacs and Geiser: Completion for Guix specific code? Date: Wed, 16 Nov 2022 11:49:51 +0000 In-reply-to: <87wn7vjg8o.fsf@posteo.de> Message-ID: <87sfijp15j.fsf@posteo.de> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Received-SPF: pass client-ip=185.67.36.65; envelope-from=mekeor@posteo.de; helo=mout01.posteo.de X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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_NONE=-0.0001, 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.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-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1668599595; 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=CAgia/WK+ybN2v+GRU0J2TzoFGzAVQHyR40GRoKxWz4=; b=fnw+97GsfiXPkMCBc0edqTZyf34QaE8wC6BfOVmHoiPX3J1WG+J1p59i7BD//NkQweLPWK yj5K2qca7eDs6kKdkGFRPvgBXi0LRmL6JuwFn3/I+hoKp+JAqp4+la38eHvijZAoBMe42p LT+Nvm9vvOnjVtUd1gMJmvuhAWZ8sNCcjcPjzJ9WQPY1nTmiSpLnD6rnEmG2fbuZnUzrhv dXnk6miNiN8ekvbYlLoqNR5UK7P9kYxj4v0qwEhTuGP1Wc0AWdKZQ1+MRe5NXA/ORzXufB HVYjb1EdJfyWHB3NguRyt1w63GGvWmrX9qLb9pvK//dgljFRgYd+yKnlFKE2wg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1668599595; a=rsa-sha256; cv=none; b=rNA0juxTIRd2pTqaRPh4Vgz+Co24lJ9j486bZBnF7zaacoZN1hBaaz2HDC2P/ZO7rKoxWc 1FCUw/g1WmwHgs2lL4Vnox519M50ww0zgbbVePAAH6tb4dzA3pDVJkk95HVguzLtbnjhpt 7ZxSyTkZMmFN7qdd4rgaoAapcF5qY7o4pYgSx2wNJTRFj+ETQB7w5PTcPhImFjaX7rb9nr Ywz9rM8P2gC0to11TjuJj81Ya6WzzFC6lCgm5wuhYQ+cguM0sIj02E3T6TtXrZ1SrQGE9v AE9ihjUnjNqiLB4svo1C5YJHZoxVsmkQZ/aqR+LvMiHhEDHHQ8ol4ZY1eHtT6Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.de header.s=2017 header.b=ByMBnxe8; 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-Migadu-Spam-Score: -3.04 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.de header.s=2017 header.b=ByMBnxe8; 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-Migadu-Queue-Id: 75D1D385E5 X-Spam-Score: -3.04 X-Migadu-Scanner: scn1.migadu.com X-TUID: ez6IFS0D2MOf --=-=-= Content-Type: text/plain Sorry, I think the attached files were not separated well. Maybe it's better this time! --=-=-= Content-Type: text/plain Content-Disposition: attachment; filename=mre.el (require 'corfu) (setq corfu-auto t corfu-auto-prefix 0 corfu-quit-no-match t) (global-corfu-mode) ;; optional: (require 'corfu-doc) (add-to-list 'corfu-mode-hook #'corfu-doc-mode) (require 'geiser-guile) (with-eval-after-load 'geiser-guile (add-to-list 'geiser-guile-load-path "/home/user/path/to/guix/repository")) --=-=-= Content-Type: text/plain Content-Disposition: attachment; filename=mre.scm (use-modules (gnu) (gnu system) (guix utils)) (ope --=-=-= Content-Type: text/plain 2022-11-16 / 11:07 / mekeor@posteo.de: > Hello, > > when editing a Guix system declaration (system.scm) with GNU Emacs and > Geiser (and corfu.el), can I get completion for Guix specific code? > Right now, I only get completion suggestions based on generic Guile > modules. E.g. completing "(ope" (by pressing C-M-i) does not offer > "(operating-system", but only "(open" etc. from module (guile). Is there > any way to get completion for the Guix-specific code? > > You can reproduce the reported behaviour as follows. > > 1. Save the attached mre.el and mre.scm files somewhere. > 2. Modify the path to the Guix repository inside mre.el. > 3. Make sure you have these packages installed, e.g. with a guix-shell: > > guix shell emacs emacs-corfu emacs-corfu-doc emacs-geiser \ > emacs-geiser-guile guile > > 4. Open that directory in a shell, navigate to the saved files, and > launch Emacs: > > emacs -Q -l mre.el > > 5. In Emacs, open mre.scm, start Geiser with M-x geiser RET, navigate > the cursor to "(opeHERE", and press C-M-i (which runs > completion-at-point). You'll see that it does not suggest > "operating-system". (Even if you have compiled all Guix inside your > local clone of its repository.) > > Kindly > Mekeor > > > (require 'corfu) > (setq > corfu-auto t > corfu-auto-prefix 0 > corfu-quit-no-match t) > (global-corfu-mode) > > ;; optional: > (require 'corfu-doc) > (add-to-list 'corfu-mode-hook #'corfu-doc-mode) > > (require 'geiser-guile) > (with-eval-after-load 'geiser-guile > (add-to-list 'geiser-guile-load-path "/home/user/path/to/guix/repository")) > > (use-modules > (gnu) > (gnu system) > (guix utils)) > > (ope --=-=-=--