Live data from Hacker News

Setting up Gmail in Doom Emacs using mbsync and mu4e

erichgrunewald.com

41–50 of 50 posts

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

#41

I discovered Doom Emacs a couple of months ago and it made me use emacs more often again. Doom Emacs is well made and makes configuration of emacs a lot faster and easier. I've noticed that a lot of file types have support from an LSP server and setting that up is also easy. Long time ago, I used to read email using wanderlust on emacs. I remember I really liked it, it was very powerfull in handling email and it had…

Mu4e can render HTML e-mails in Emacs (using Emacs’ shr render engine). Works well enough for most cases. When it doesn’t, there is a command for opening the message in your browser of choice. Re sending HTML: I personally think it’s a bad idea and don’t do it. But I think it‘s possible to write e-mails in org mode markup and them have them automatically converted to HTML. Probably easy to build something similar for…

You can indeed write an email in org-mode and convert it to html before sending it out: https://github.com/cashweaver/dotfiles/blob/main/config/doom....

I think this is the write-up I pulled these functions from: https://kitchingroup.cheme.cmu.edu/blog/2016/10/29/Sending-h...

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

#43

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

I’ve gone in this direction after using Spacemacs for a couple of years. I’ve found

- Startup speed much quicker though I do use emacsclient so this is only an issue on first launch

- Overall feels a lot more snappy

- Simpler and more straight forward configuration

- Updates seem to break less (though sadly this isn’t reduced to zero, just reduced).

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

#44

Great write up! I would suggest using OAuth2 rather than the Less Secure App settings ( https://cashweaver.com/blog/read-email-in-emacs-with-mbsync-... ). I also wrote up a guide for using notmuch, which has quickly become my preferred emacs email solution: https://cashweaver.com/blog/read-email-from-gmail-with-notmu...

sweet, thanks. looks like you pretty much got there before me. i wonder what it is about doing this that makes people want to blog about it ...

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

#45

Has anyone here used both offlineimap and mbsync and can speak to how these two compare?

I switched from offlineimap to mbsync. I can't remember the details, but I remember having lots of various issues with offlineimap but I can't remember any issues with mbsync other than once I think I had to change something in my config after an upgrade.

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

#46
If you are not on GMail but have SSH access to your Maildir, a nice (faster) alternative to mbsync or offlineimap is "Sync Mail Dir", short smd: http://syncmaildir.sourceforge.net/ It works well, but unfortunately it needs a new maintainer: https://github.com/gares/syncmaildir

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

#47

Earlier quoted context omitted.

I can confirm a lot of what has already been said. I've used spacemacs since 2017, have contributed to it, and have written several private layers for it, such as a custom org layer. But I switch to Doom emacs literally two weeks ago and I'm never going back. I find doom to be much faster not just startup time but in general responsiveness (one major exception: hitting SPC and waiting for key binding tips to show see…

You can fix the delay for which key using by modifying the following variable: (setq which-key-idle-delay 0.1)

Just did this and it sure works.

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

#48
post #26

Earlier quoted context omitted.

And If you name tables in org-mode, you can reference them from shell with some simple functions, e.g. `fromOrg tsv Network.org:[MAC-List]`

That’s news to me. Would you please elaborate?

Tables are fairly easy to extract from org-files, even with some sed/awk function, e.g. `getOrgTable() { awk -vT=$1 '/^#\+NAME: /&&$2~T{f=1;next};/----/{next};!/^\|/{f=0};f' $2 ; }`

The above should work for most tables, and you get back a pipe-separated-values output, that you could further refine with e.g. http://harelba.github.io/q/ to get tsv,csv output support and SQL query capabilities.

I regularly SQL-Query with INNER JOINs over tables in various org-files stored on multiple servers in one commandline using this combination.

John Kitchin has a description for a "cleaner" way to do it here: https://kitchingroup.cheme.cmu.edu/org/2014/08/11/Using-org-...

My scripts are a dirty combination of ideas/concepts of both of the above, that work for me depending on situation/use-case, but that I should clean up one day, and gist someplace. I can give more info, if the above doesn't give enough pointers yet for you to dig yourself further towards "your solution".

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

#49
post #26

Earlier quoted context omitted.

That’s news to me. Would you please elaborate?

Tables are fairly easy to extract from org-files, even with some sed/awk function, e.g. `getOrgTable() { awk -vT=$1 '/^#\+NAME: /&&$2~T{f=1;next};/----/{next};!/^\|/{f=0};f' $2 ; }` The above should work for most tables, and you get back a pipe-separated-values output, that you could further refine with e.g. http://harelba.github.io/q/ to get tsv,csv output support and SQL query capabilities. I regularly SQL-Query wi…

That’s plenty of information. Thank you!

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

#50

I'm comfortable with Emacs for programming, Org and RSS. I've tried using email from Emacs a number of times, but never had a setup that I stick with. All modes that used IMAP would block. notmuch.el was nice but distributed read-state between two DBs, which felt brittle. I use Thunderbird. I'm keen to use email from Emacs, if I can find a decent solution.

Do you mean for fetching? I've got offlineimap set up for mine, and it's primarily a background task, because Emacs is not dealing with it directly.

Using mu4e, it is more of an interface to that local store with its built-in search API.

Post reply on HN