From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carlo Zancanaro Subject: Re: Package Installation Queries Date: Thu, 09 Feb 2017 08:47:46 +1100 Message-ID: <87vaskuzgd.fsf@zancanaro.id.au> References: Mime-Version: 1.0 Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47567) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cba5p-0000Bs-PX for Help-Guix@gnu.org; Wed, 08 Feb 2017 16:48:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cba5k-0003YP-US for Help-Guix@gnu.org; Wed, 08 Feb 2017 16:48:01 -0500 Received: from mail-it0-x22d.google.com ([2607:f8b0:4001:c0b::22d]:34853) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cba5k-0003W6-Ns for Help-Guix@gnu.org; Wed, 08 Feb 2017 16:47:56 -0500 Received: by mail-it0-x22d.google.com with SMTP id 203so111777331ith.0 for ; Wed, 08 Feb 2017 13:47:55 -0800 (PST) In-reply-to: List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: Niall Dooley Cc: Help-Guix@gnu.org --==-=-= Content-Type: multipart/mixed; boundary="=-=-=" --=-=-= Content-Type: text/plain On Wed, Feb 08 2017, Niall Dooley wrote > (2) In terms of Emacs, do fellow Guix users install all packages via Guix > instead of the traditional ELPA, MELPA route. I suspect they do as I guess > that is the point. But I ask for advice as my 'pre-guix' emacs config makes > heavy use of the use-package macro installing all third party packages to > ~/.emacs.d/elpa . I guess I could add the 'guix-emacs' site-lisp directory > for each guix installed package to the load-path specifying this in each > specific use-package package declaration. Is that what others do? I install all of my Emacs packages via Guix, but in an usual way. I have written a script which takes in a list of Emacs packages that I want to install, then uses the Elpa importer to generate a Guix package (the scheme data structure) which I can build using `guix package -f`. Each time I run the script it pulls the most recent version on Melpa, so it's not reproducible, but I get the ability to use Guix for roll-backs (and in theory I think I could archive my configuration and import it on another machine, but I haven't tried that). The biggest advantage to me is actually that I can look at the source of one of my installed Emacs packages without having to worry that I'll accidentally modify my installed version. This is what motivated me to use my current method (as ridiculous as that sounds). I have attached my script. It won't run on a normal Guix installation because it uses symbols from (guix import elpa) which are not exported, but on my machine I have exported more things from (guix import elpa) in order to use them in my script. I've been meaning to submit a patch for this, but I haven't yet done so. --=-=-= Content-Type: application/octet-stream Content-Disposition: attachment; filename=emacs-configuration.scm Content-Transfer-Encoding: base64 OzsgLSotIG1vZGU6IHNjaGVtZTsgZ2Vpc2VyLXNjaGVtZS1pbXBsZW1lbnRhdGlvbjogZ3VpbGUg LSotCjs7IHJ1biB0aGlzIHdpdGggImd1aXggcGFja2FnZSAtZiIgdG8gaW5zdGFsbCB0aGUgZW1h Y3MgY29uZmlndXJhdGlvbgoKKHVzZS1tb2R1bGVzIChnbnUgcGFja2FnZXMgZW1hY3MpCiAgICAg ICAgICAgICAoZ3VpeCBiYXNlMzIpCiAgICAgICAgICAgICAoZ3VpeCBidWlsZC1zeXN0ZW0gZW1h Y3MpCiAgICAgICAgICAgICAoZ3VpeCBidWlsZC1zeXN0ZW0gdHJpdmlhbCkKICAgICAgICAgICAg IChndWl4IGRvd25sb2FkKQogICAgICAgICAgICAgKGd1aXggaGFzaCkKICAgICAgICAgICAgIChn dWl4IGh0dHAtY2xpZW50KQogICAgICAgICAgICAgKGd1aXggaW1wb3J0IGVscGEpCiAgICAgICAg ICAgICAoZ3VpeCBpbXBvcnQgZWxwYSkKICAgICAgICAgICAgIChndWl4IHBhY2thZ2VzKQogICAg ICAgICAgICAgKGdudSBwYWNrYWdlcykKICAgICAgICAgICAgIChndWl4IHN0b3JlKQogICAgICAg ICAgICAgKGljZS05IG1hdGNoKQogICAgICAgICAgICAgKGljZS05IHByZXR0eS1wcmludCkKICAg ICAgICAgICAgIChzcmZpIHNyZmktMjYpKQoKKGRlZmluZSBwYWNrYWdlcwogICcob3JnCiAgICB1 bmRvLXRyZWUKICAgIDs7IG90aGVyIHBhY2thZ2VzIGdvIGhlcmUKICAgICkpCgooZGVmaW5lIChy ZXNvbHZlLWRlcGVuZGVuY2llcyBuYW1lcyBjYWNoZSkKICAoZmlsdGVyIChjb21wb3NlIG5vdCAo Y3V0IGVxPyA8PiAjZikgY2FkcikKICAgICAgICAgIChtYXAgKGxhbWJkYSAobmFtZSkKICAgICAg ICAgICAgICAgICAobGlzdCAoZWxwYS1uYW1lLT5wYWNrYWdlLW5hbWUgbmFtZSkKICAgICAgICAg ICAgICAgICAgICAgICAoZWxwYS1uYW1lLT5wYWNrYWdlIG5hbWUgY2FjaGUpKSkKICAgICAgICAg ICAgICAgbmFtZXMpKSkKCihkZWZpbmUgKGVscGEtcGFja2FnZS0+cGFja2FnZSBwa2cgcGtnLWNh Y2hlKQogICJUdXJuIGFuIGVscGEgcGFja2FnZSBpbnRvIGFuIGFjdHVhbCBwYWNrYWdlLiIKICAo bWF0Y2ggcGtnCiAgICAoKCQgPGVscGEtcGFja2FnZT4gbmFtZSB2ZXJzaW9uIGlucHV0cyBzeW5v cHNpcyBraW5kIGhvbWUtcGFnZSBkZXNjcmlwdGlvbiBzb3VyY2UtdXJsKQogICAgIChwYWNrYWdl CiAgICAgICAobmFtZSAoZWxwYS1uYW1lLT5wYWNrYWdlLW5hbWUgbmFtZSkpCiAgICAgICAodmVy c2lvbiB2ZXJzaW9uKQogICAgICAgKHNvdXJjZSAob3JpZ2luCiAgICAgICAgICAgICAgICAgKG1l dGhvZCB1cmwtZmV0Y2gpCiAgICAgICAgICAgICAgICAgKHVyaSBzb3VyY2UtdXJsKQogICAgICAg ICAgICAgICAgIChzaGEyNTYKICAgICAgICAgICAgICAgICAgKGJhc2UzMgogICAgICAgICAgICAg ICAgICAgKGJ5dGV2ZWN0b3ItPm5peC1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ICAgICAgKGZpbmQtcGFja2FnZXMtYnktbmFtZSBuYW1lKSkKICAgICAgICBbKHBhY2thZ2UgLiBf KSBwYWNrYWdlXQogICAgICAgIFtfICNmXSkKICAgICAgKGhhc2gtcmVmIHBrZy1jYWNoZSBuYW1l ICNmKQogICAgICAobGV0ICgocGFja2FnZSAoZWxwYS1wYWNrYWdlLT5wYWNrYWdlIChmZXRjaC1w a2cgbmFtZSkgcGtnLWNhY2hlKSkpCiAgICAgICAgKGNvbmQKICAgICAgICAgKHBhY2thZ2UKICAg ICAgICAgICAoaGFzaC1zZXQhIHBrZy1jYWNoZSBuYW1lIHBhY2thZ2UpCiAgICAgICAgICAgcGFj a2FnZSkKICAgICAgICAgKChlbWFjcy1zdGFuZGFyZC1saWJyYXJ5PyBuYW1lKQogICAgICAgICAg I2YpCiAgICAgICAgIChlbHNlCiAgICAgICAgICAoZXJyb3IgIkNhbid0IGRvd25sb2FkIGxpYnJh cnk6ICIgbmFtZSkpKSkpKQoKKGxldCAoKGNhY2hlIChtYWtlLWhhc2gtdGFibGUpKQogICAgICAo ZGVwZW5kZW5jaWVzIChtYXAgc3ltYm9sLT5zdHJpbmcgcGFja2FnZXMpKSkKICAocGFja2FnZQog ICAgKG5hbWUgImVtYWNzLWNvbmZpZ3VyYXRpb24iKQogICAgKHZlcnNpb24gIjAuMC4wIikKICAg IChzb3VyY2UgI2YpCiAgICAoYnVpbGQtc3lzdGVtIHRyaXZpYWwtYnVpbGQtc3lzdGVtKQogICAg KGFyZ3VtZW50cyBgKCM6YnVpbGRlciAobWtkaXIgJW91dHB1dCkpKQogICAgKHByb3BhZ2F0ZWQt aW5wdXRzCiAgICAgKHJlc29sdmUtZGVwZW5kZW5jaWVzIGRlcGVuZGVuY2llcyBjYWNoZSkpCiAg ICAoc3lub3BzaXMgIiIpCiAgICAoZGVzY3JpcHRpb24gIiIpCiAgICAobGljZW5zZSAjZikKICAg IChob21lLXBhZ2UgIiIpKSkK --=-=-= Content-Type: text/plain > (3) Before installing Guix I used SCP as my font for Emacs. However, > following the installation of SCP via Guix some unicode glyphs are not > rendered correctly as they were before. Note, I did a fresh install of my > *foreign* distro before installing Guix and did not re-install SCP on it. > Is there further steps I need to perform to have these unicode glyphs > rendered correctly? I had an issue where my font didn't render unicode glyphs in Emacs. I was using font-dejavu and I had to also install font-gnu-unifont to get unicode things to render. > (4) I wish to manage my dotfiles with GNU stow. Traditionally, I understand > people create a dotfiles directory say under $HOME and create the various > subdirectories in this directory from which the symlinks are produced. Is > this approach still the same with GNU stow installed via Guix or is the > 'stow' directory created elsewhere? I use Stow to manage my dotfiles and my workflow under Guix is exactly the same as it was in debian. I hope that helps! Carlo --=-=-=-- --==-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEETnMK3I26XHaBYsl5wFUlyLtgbSsFAlibkgIACgkQwFUlyLtg bStSGQf+KtUvVHt6y0E953YwZBMD2X1FIi1BX+4UprieE1V0sw0FA2ZXwXUBIrMI C7nlb9dsO/jcvgvemD8Et+C0nq3vX4B+0Xbq7xi4EFm9U6+ApTnfDJ7aHnpViT0t bmEuZNJyhOa4HM4V2+vRS7vnq9X9Yfit2xEB1I/Inn61NjHAdSz3+3mYUm5TloSK dcTAWJGD477r5/exCfvPKIs1r/QXY8kABhGyBujFy3JvG0wBkjpph5YNtEpPZbtH ilOVHFB8jC9PGNQdNtbx+3iWKlkri+y/bPsvXNkIaQKUpxYHDX65+2bhzU89wGOk ZmJHOdX1NCJY6TDJjzOEu4KCbJRg0A== =Ou+H -----END PGP SIGNATURE----- --==-=-=--