-
Notifications
You must be signed in to change notification settings - Fork 391
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
mu4e
on windows with mu
in WSL
#2624
base: master
Are you sure you want to change the base?
Conversation
Ah, thanks, that's much less intrusive! Did you test on Linux as well? |
@djcb I have addressed your comment as well as added a section in README explaining how to make it work on Windows. I cannot test on Linux as I do not have a Linux machine. FWIW, I was able to test it on a Mac, which should be close enough. Let me know if any more changes are needed. |
I should note that I have tested the changes by modifying the existing installation. I could not compile |
I'm back with another approach to make
mu4e
on windows work withmu
in WSL. I was playing withmu4e
with the intention to define an advice aroundmu4e--server-call-mu
to translate whatever paths are being returned frommu
. However, I discovered a really useful behavior ofinsert-file-contents
on windows, making it unnecessary to transform any paths. My interaction on Emacs mailing list is here. I'm reproducing the email here as the email text will explain it better.Basically, if you start
mu4e
from any buffer within//wsl.localhost/Ubuntu/...
,insert-file-contents
will prepend the drive letter, in this case//wsl.localhost/Ubuntu/
to all paths, pointing it to the right file. The whole thing works transparently as far as mu4e is concerned.Then why am I relaxing the validations?
mu
is not a windows native program. It is available in WSL. Hence(file-executable-p mu4e-mu-binary)
will always return false. Moreover, we need to startmu
in WSL, which can be done by settingand running
mu
as a shell command instead of a windows native process. Is there a way to incorporate these changes inmu4e
? We can then maybe explain in the README how one can get this setup working on Windows.