I've been using this guide to set up email in Emacs on macOS
. I managed the offlineimap
connection and replication into a Maildir
. I installed mu
with brew install mu
:
$ which mu
/usr/local/bin/mu
But I cannot find anything in the Emacs site-lisp
to launch mu4e
:
$ ls /usr/local/share/emacs/site-lisp/mu/ ls: /usr/local/share/emacs/site-lisp/mu/: No such file or directory
But the website suggests that mu4e
is installed:
mu includes an emacs-based e-mail client (mu4e)
I tried building from git and using brew in this way:
EMACS=$(which emacs) brew install mu --with-emacs --HEAD
and in both cases I get:
configure: error: Package requirements (gmime-3.0) were not met:
No package 'gmime-3.0' found
Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.
Alternatively, you may set the environment variables GMIME_CFLAGS
and GMIME_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
and this package is not in brew:
Error: No formulae found in taps.
Furthermore, on my home computer the command EMACS=$(which emacs) brew install mu --with-emacs --HEAD
reinstalls emacs
with brew
, despite it being already installed.
Another attempt is to install mu
, then just copy the mu4e
files to site-lisp
:
brew install mu
git clone git://github.com/djcb/mu.git
mkdir /usr/local/share/emacs/site-lisp/mu/
cp -r mu4e /usr/local/share/emacs/site-lisp/mu/
and adding this in ~/.emacs:
(require 'mu4e)
(add-to-list 'load-path "/usr/local/share/emacs/site-lisp/mu/mu4e")
But I get the error Cannot open load file: No such file or directory, mu4e-meta
. And still, M-x mu4e
doesn't work.
How can I install mu4e
?
(require 'mu4e)
, which I now updated the question with. Those two lines are the relevant part of.emacs
.