From: Fredrik Salomonsson <plattfot@gmail.com>
To: help-guix <help-guix@gnu.org>
Subject: Questions about guix handling emacs packages
Date: Fri, 22 May 2020 23:18:10 -0700 [thread overview]
Message-ID: <CABZcOARCxn4cGgN8U+kVDEdWZ5fpJz5komC6w_-U-=wwH-yMDQ@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 2472 bytes --]
Hi,
Thought I should try letting guix handle the emacs packages. And overall it
worked out great. But encounter some minor issues along the way, so I
thought I should ask.
1) The manual mention that packages installed via guix will be picked up by
emacs from the EMACSLOADPATH which is set when emacs is installed. That was
not the case for me. I needed to manually set:
export EMACSLOADPATH=$GUIX_PROFILE/share/emacs/site-lisp:$EMACSLOADPATH
for it to work. I'm running guix on a foreign distro and I'm using
emacs-next. Is one of those the reason for it?
2) Not all packages I use in emacs are packaged up in guix (yet). And some
did not work properly for me. So I still need to rely on emacs to install
some of the packages. The issue is, that it doesn't seem that emacs knows
about the packages installed via guix when it comes to installing packages.
Even though it can load them just fine.
For example emacs-dash which I have installed via my manifest but is also
one that gets installed by emacs. If I run emacs -Q and then M-x
describe-package dash. It gives me
Package dash is dependency.
Status: Installed in ‘dash-20200426.2244/’ (unsigned).
Version: 20200426.2244
Summary: A modern list library for Emacs
Required by: ts-20191010.210, org-super-agenda-20200310.1337,
magit-20200522.1028, ht-20200217.2331, git-commit-20200516.2016
Keywords: lists
Maintainer: Magnar Sveen <magnars@gmail.com>
Author: Magnar Sveen <magnars@gmail.com>
Other versions: 20200426.2244 (melpa), 2.17.0 (melpa-stable), 2.12.0 (gnu).
If I remove my elpa directory in my user-emacs-directory where emacs
installs the packages. It wont find dash when I do describe-package. But if
I run (require 'dash) it will find and load dash. Unsetting EMACSLOADPATH
and it will fail to find dash.
Is this the expected behavior? From what I can tell from reading the manual
[1], external packages must be listed in `package-directory-list` and have
the same layout as the one installed in elpa. Which is not the case when
installing via guix, as everything is symlinked to
$GUIX_PROFILE/share/emacs/site-lisp.
I hope this isn't too much off topic and apologize if any of this has been
asked before (I couldn't find the answer when searching the mailing list
archive).
Thanks
1:
https://www.gnu.org/software/emacs/manual/html_node/emacs/Package-Files.html#Package-Files
--
s/Fred[re]+i[ck]+/Fredrik/g
[-- Attachment #2: manifest.scm --]
[-- Type: text/x-scheme, Size: 1148 bytes --]
(use-package-modules
fonts
emacs
emacs-xyz
cmake
finance
shellutils
haskell-apps)
(packages->manifest
(list
font-hack
glibc-locales
emacs-next
emacs-s
emacs-dash
emacs-company
emacs-yasnippet
emacs-highlight-symbol
emacs-haskell-mode
emacs-smartparens
emacs-jinja2-mode
emacs-rust-mode
emacs-go-mode
emacs-cmake-mode
emacs-geiser
emacs-toml-mode
emacs-yaml-mode
emacs-json-mode
emacs-markdown-mode
emacs-julia-mode
emacs-systemd-mode
emacs-lua-mode
emacs-ledger-mode
emacs-gnuplot
emacs-magit
emacs-transient
emacs-ag
emacs-pdf-tools
emacs-telega
emacs-vterm
emacs-libmpdel
emacs-mpdel
emacs-nginx-mode
emacs-org
emacs-emms
emacs-ivy
emacs-wgrep
emacs-tramp
emacs-sudo-edit
emacs-evil
emacs-emojify
emacs-rainbow-mode
emacs-move-text
emacs-expand-region
emacs-multiple-cursors
emacs-string-inflection
emacs-nov-el
emacs-guix
emacs-lsp-mode
emacs-eglot
emacs-direnv
;; External tools used by emacs
direnv
shellcheck
))
next reply other threads:[~2020-05-23 6:18 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-05-23 6:18 Fredrik Salomonsson [this message]
2020-05-25 14:58 ` Questions about guix handling emacs packages zimoun
2020-05-25 20:12 ` Fredrik Salomonsson
2020-05-26 8:26 ` zimoun
2020-05-30 2:13 ` Fredrik Salomonsson
2020-06-01 8:15 ` zimoun
2020-06-01 17:12 ` Fredrik Salomonsson
2020-06-02 10:25 ` zimoun
2020-06-02 17:34 ` Fredrik Salomonsson
2020-06-11 9:24 ` Alexey Abramov
2020-06-11 16:50 ` Fredrik Salomonsson
2020-05-31 2:29 ` Maxim Cournoyer
2020-06-01 3:42 ` Fredrik Salomonsson
2020-06-01 18:37 ` Maxim Cournoyer
2020-06-02 17:37 ` Fredrik Salomonsson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CABZcOARCxn4cGgN8U+kVDEdWZ5fpJz5komC6w_-U-=wwH-yMDQ@mail.gmail.com' \
--to=plattfot@gmail.com \
--cc=help-guix@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).