New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mu: correctly install mu4e by moving it to emacs' load-path. #31722
Conversation
So if this works for people I'm not against merging it, but I think the problem is a little deeper than just mu4e. There are quite a lot of Emacs derivations that will put themselves in subdirectories of site-lisp like JDEE for instance. Something like |
@matthewbauer I agree. Additionally, moving all emacs-lisp files into |
What do the maintainers think? @antono @the-kenny @peterhoeg |
Are you sure it's not the same as #18146 (comment) ? |
I can confirm than on NixOS with emacs and mu4e installed from nix-env, (eval-and-compile (let ((mu4epath
(concat
(file-name-directory
(file-truename
(executable-find "mu")))
"../share/emacs/site-lisp/mu4e")))
(when (and
(string-prefix-p "/nix/store/" mu4epath)
(file-directory-p mu4epath))
(message "Adding %s to load-path" (file-truename mu4epath))
(add-to-list 'load-path (file-truename mu4epath))))) It works because only mu4e is concerned, but probably wouldn't scale well. |
@matthewbauer is right. The correct solution is to adapt our
We should extend it to traverse one (or more?) levels into subdirectories and add them to Note that this file isn't evaluated when Emacs is either started via |
I'm closing this pull-request. Primarily, because this is not the good solution. Secondly, I should not have used my master-branch because it pushed another unrelated commit to it. Does anybody want to implement the changes in |
I closed this PR (because it only solved the symptoms instead of the root problem) and created an issue for the root problem at #33412. |
Motivation for this change
After installing mu, mu4e was not available to Emacs. People were already asking on Reddit how to solve this.
The issue was caused because the
mu4e-*.el
files were installed into$out/share/emacs/site-lisp/mu4e
instead of$out/share/emacs/site-lisp
.Things done
build-use-sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)