From mboxrd@z Thu Jan 1 00:00:00 1970 From: Federico Beffa Subject: Re: Emacs load path Date: Fri, 1 Jan 2016 15:25:27 +0100 Message-ID: References: <87io3frjcd.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary=001a11426040ee7cca0528468a67 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53658) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aF0e2-00013b-0G for guix-devel@gnu.org; Fri, 01 Jan 2016 09:25:31 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aF0e0-0004Gt-FZ for guix-devel@gnu.org; Fri, 01 Jan 2016 09:25:29 -0500 In-Reply-To: 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: =?UTF-8?Q?Ludovic_Court=C3=A8s?= Cc: Guix-devel , Alex Kost , KAction@gnu.org --001a11426040ee7cca0528468a67 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Wed, Dec 30, 2015 at 5:55 PM, Federico Beffa wrote: > On Wed, Dec 30, 2015 at 5:29 PM, Ludovic Court=C3=A8s wrot= e: >> Federico Beffa skribis: >> >>> If you install guix in the default prefix (/usr/local) you should find = a >>> file called 'guix.el' in /usr/local/share/emacs/site-lisp/. With that >>> you can include the following commands in your .emacs file and you >>> should be all set: >>> >>> 1. (setq load-path (append '("/usr/local/share/emacs/site-lisp/") load-= path)) >>> 2. (require 'guix-init nil t) >>> >>> On some host distros step 1. may not even be needed. >> >> I don=E2=80=99t see how to make that happen automatically on foreign dis= tros. >> Any ideas? >> >> We still have the option of making it more prominent in the >> documentation, for example by mentioning specifically Emacs under >> . >> >> Thoughts? > > If we make an 'emacs-guix' package and make it an input to emacs it shoul= d work. Attached is a proof of concept patch showing one way to do it. If you don't want to add the full 'guix.el', then we should definitely add code in a similar way to instruct emacs to look in the right places (".../guix.d") for our emacs packages out of the box. As Dmitry rightfully points out, having emacs packages which do not work out of the box is just a bug. Regards, Fede --001a11426040ee7cca0528468a67 Content-Type: text/x-diff; charset=US-ASCII; name="0001-gnu-emacs-Add-guix.el-functionality.patch" Content-Disposition: attachment; filename="0001-gnu-emacs-Add-guix.el-functionality.patch" Content-Transfer-Encoding: base64 X-Attachment-Id: f_iivrpn220 RnJvbSBjYjJhMTNmMDZjODBkM2I1MzQ1MWQxNWI1NDQxY2RjMjY3NjY2MDgzIE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBGZWRlcmljbyBCZWZmYSA8YmVmZmFAZmJlbmdpbmVlcmluZy5j aD4KRGF0ZTogRnJpLCAxIEphbiAyMDE2IDE1OjEyOjQwICswMTAwClN1YmplY3Q6IFtQQVRDSF0g Z251OiBlbWFjczogQWRkIGd1aXguZWwgZnVuY3Rpb25hbGl0eS4KCiogZ251L3BhY2thZ2VzL2Vt YWNzLnNjbSAoZW1hY3MpOiBDb252ZXJ0IHRvICdtb2RpZnktcGhhc2VzJyBzeW50YXguICBBZGQK ICAnZ3VpeC1zcmMnIGlucHV0IGFuZCAnaW5zdGFsbC1ndWl4LWVsIHBoYXNlLgotLS0KIGdudS9w YWNrYWdlcy9lbWFjcy5zY20gfCAzOCArKysrKysrKysrKysrKysrKysrKysrKysrKysrKy0tLS0t LS0tLQogMSBmaWxlIGNoYW5nZWQsIDI5IGluc2VydGlvbnMoKyksIDkgZGVsZXRpb25zKC0pCgpk aWZmIC0tZ2l0IGEvZ251L3BhY2thZ2VzL2VtYWNzLnNjbSBiL2dudS9wYWNrYWdlcy9lbWFjcy5z Y20KaW5kZXggNGIyM2E1NC4uNzM5ZWVkMSAxMDA2NDQKLS0tIGEvZ251L3BhY2thZ2VzL2VtYWNz LnNjbQorKysgYi9nbnUvcGFja2FnZXMvZW1hY3Muc2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SkKKyAgICAgICAgICAgICAgICAgIChndWl4IGJ1aWxkIHV0aWxzKQorICAgICAgICAgICAgICAg ICAgKHNyZmkgc3JmaS0yNikpCisgICAgICAgIzpwaGFzZXMKKyAgICAgICAobW9kaWZ5LXBoYXNl cyAlc3RhbmRhcmQtcGhhc2VzCisgICAgICAgICAoYWRkLWJlZm9yZSAnY29uZmlndXJlICdmaXgt L2Jpbi9wd2QKKyAgICAgICAgICAgKGxhbWJkYSBfCisgICAgICAgICAgICAgOzsgVXNlIGBwd2Qn LCBub3QgYC9iaW4vcHdkJy4KKyAgICAgICAgICAgICAoc3Vic3RpdHV0ZSogKGZpbmQtZmlsZXMg Ii4iICJeTWFrZWZpbGVcXC5pbiQiKQorICAgICAgICAgICAgICAgKCgiL2Jpbi9wd2QiKQorICAg ICAgICAgICAgICAgICJwd2QiKSkpKQorICAgICAgICAgKGFkZC1hZnRlciAnaW5zdGFsbCAnaW5z dGFsbC1ndWl4LWVsCisgICAgICAgICAgICAgKGxhbWJkYSogKCM6a2V5IGlucHV0cyBvdXRwdXRz ICM6YWxsb3ctb3RoZXIta2V5cykKKyAgICAgICAgICAgICAgIChsZXQqICgoZ3VpeC1zcmMgKGFz c29jLXJlZiBpbnB1dHMgImd1aXgtc3JjIikpCisgICAgICAgICAgICAgICAgICAgICAgKG91dCAo YXNzb2MtcmVmIG91dHB1dHMgIm91dCIpKQorICAgICAgICAgICAgICAgICAgICAgIChzaXRlLWxp c3AgKHN0cmluZy1hcHBlbmQgb3V0ICIvc2hhcmUvZW1hY3MvIgorICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgLCh2ZXJzaW9uLW1ham9yK21pbm9yIHZlcnNp b24pCisgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAiL3Np dGUtbGlzcCIpKQorICAgICAgICAgICAgICAgICAgICAgICh1bnBhY2sgKGFzc29jLXJlZiAlc3Rh bmRhcmQtcGhhc2VzICd1bnBhY2spKSkKKyAgICAgICAgICAgICAgICAgKG1rZGlyICJndWl4IikK KyAgICAgICAgICAgICAgICAgKHdpdGgtZGlyZWN0b3J5LWV4Y3Vyc2lvbiAiZ3VpeCIKKyAgICAg ICAgICAgICAgICAgICAoYXBwbHkgdW5wYWNrIChsaXN0ICM6c291cmNlIGd1aXgtc3JjKSkKKyAg ICAgICAgICAgICAgICAgICA7OyBGSVhNRTogY29uZmlndXJlIGFuZCBieXRlLWNvbXBpbGUgZ3Vp eC5lbCBiZWZvcmUgaW5zdGFsbGluZworICAgICAgICAgICAgICAgICAgIChmb3ItZWFjaCAoY3V0 IGluc3RhbGwtZmlsZSA8PiBzaXRlLWxpc3ApCisgICAgICAgICAgICAgICAgICAgICAgICAgICAg IChmaW5kLWZpbGVzICJlbWFjcyIgIlxcLmVsIikpKQorICAgICAgICAgICAgICAgICAjdCkpKSkp KQogICAgIChpbnB1dHMKICAgICAgYCgoImdudXRscyIgLGdudXRscykKICAgICAgICAoIm5jdXJz ZXMiICxuY3Vyc2VzKQpAQCAtMTEwLDcgKzEyOSw4IEBACiAgICAgICAgKCJsaWJpY2UiICxsaWJp Y2UpCiAgICAgICAgKCJsaWJzbSIgLGxpYnNtKQogICAgICAgICgiYWxzYS1saWIiICxhbHNhLWxp YikKLSAgICAgICAoImRidXMiICxkYnVzKSkpCisgICAgICAgKCJkYnVzIiAsZGJ1cykKKyAgICAg ICAoImd1aXgtc3JjIiAsKHBhY2thZ2Utc291cmNlIGd1aXgpKSkpCiAgICAgKG5hdGl2ZS1pbnB1 dHMKICAgICAgYCgoInBrZy1jb25maWciICxwa2ctY29uZmlnKQogICAgICAgICgidGV4aW5mbyIg LHRleGluZm8pKSkKLS0gCjIuNi4zCgo= --001a11426040ee7cca0528468a67--