Live data from Hacker News

Setting up Gmail in Doom Emacs using mbsync and mu4e

erichgrunewald.com

11–20 of 50 posts

Re: Setting up Gmail in Doom Emacs using mbsync and mu4e

#11
post #2

> Wait, why did I do this again? ... in this case for example by linking directly to email from org-mode files Org-mode. Capturing whatever into the appropriate note is wonderful. These days about 80% of the time my answer to why Emacs is org-mode. Not that there aren't other great note taking options, but I've yet to find one that integrates so fully with, well, everything. For all the doubters, I was right there wi…

I am proficient with emacs, but I've never gotten to the point where org-mode clicks. Any advice?

For me it was org-babel[1] that finally sucked me in. For example, I keep notes of various shell invocations as source blocks. Also various one-off SQL queries. Org-mode tables are surprisingly powerful too. Basically, a lot of things that I used to do occasionally are now contextualized and embedded in my notes.

[1] https://orgmode.org/worg/org-contrib/babel/intro.html

Re: Setting up Gmail in Doom Emacs using mbsync and mu4e

#13

Has anyone switched from Spacemacs to Doom Emacs? Are there special advantages Doom offers that make this switch worthwhile?

I did, I used spacemacs for a few years, but switched to Doom at the beginning of 2020. It is dramatically faster in start up and usage. I also find the configuration a lot easier and straightforward. I did the initial switch because Java LSP was stalling out spacemacs constantly.

Re: Setting up Gmail in Doom Emacs using mbsync and mu4e

#15

I've been using Neomutt for some time now and I'm already contemplating ditching it. Fewer emails these days are purely text, viewing them brings me right back to the browser anyways. Never got into the Org-Mode hype for Doom Emacs. I do love Magit though, it remains the best git tool I've used to date, but the pain of wrestling with some of my lsp plugins (Looking at ESS) has made waste more time than anything.

I have found that running the html email through w3m generates usable text in almost all cases:

    text/html;    w3m -I %{charset} -T text/html; copiousoutput;
... in your .mailcap. The result is usually better than what ends up in in the text portion of dual text/html emails. Particularly nice when someone thinks they need html to show a table.

Re: Setting up Gmail in Doom Emacs using mbsync and mu4e

#16

Has anyone switched from Spacemacs to Doom Emacs? Are there special advantages Doom offers that make this switch worthwhile?

I tried, when Spacemacs was somehow broken on my system. I didn't find anything better on Doom, and fixing Spacemacs was easier than switching to Doom. Using Doom, most of your muscle memory from Spacemacs is gone because not everything is configured the same (that is of course normal). But not all, and that make the experience weird to me.

I also feel like Spacemacs is growing faster and has more feature than Doom, because more dev's are working on Spacemacs. But I might be wrong about that.

Re: Setting up Gmail in Doom Emacs using mbsync and mu4e

#17
post #4

I'm very happy with mbsync and mu4e. The only drawback is that email fetching+indexing can be very slow (10 to 30 seconds), compared with the instantaneous gmail web interface. I'm not sure if this is poor configuration on my side, or some other bottlenecks (mbsync, mu indexing, IMAP protocol).

10-30 seconds sounds very slow indeed. It used to be slow for me (over 10 seconds against my university server), but I discovered it was because I had not deleted emails and propogated that to the server, I had only marked them for deletion (d), not deleted (D), and so there was some kind of syncing back and forth each time of quite many emails with mbsync. For me now it is always under 5 seconds for syncing and indexing, usually quicker.

Re: Setting up Gmail in Doom Emacs using mbsync and mu4e

#18

Has anyone switched from Spacemacs to Doom Emacs? Are there special advantages Doom offers that make this switch worthwhile?

I switched. Doom starts much faster and feels generally snappier and more minimal. I like the configuration system. I use this Spacemacs module for Doom[0] to retain (most of) the Spacemacs keybindings and some of the functionality.

[0] https://github.com/chenyanming/spacemacs_module_for_doom

Re: Setting up Gmail in Doom Emacs using mbsync and mu4e

#20
post #19

You might want to store application specific passwords in the Keychain. Here is how to do it in .mbsyncrc https://gist.github.com/eddieh/8c853c6cf8ffb3ad87e0720eb50f8... And here is how to do it in .msmtprc https://gist.github.com/eddieh/5b4df4a8a98ea202e6ebb020871b0...

And for Gmail specifically you might want to look at the mbsync option PipelineDepth

As noted in the .mbsyncrc gist:

> The value is "used to limit average bandwidth consumption (GMail may require this if you have a very fast connection)." Turns out the same is true for iCloud. There's probably some optimized value greater than "1" that can be used, but this works for me.

I actually have it set to 5 now.

Post reply on HN