6 ms·
I was an Emacs user back in my software writing days, but I thought I had left it behind when I became a lawyer. Over the past month or two however I’ve moved m
by rayiner 5y ago
I was an Emacs user back in my software writing days, but I thought I had left it behind when I became a lawyer. Over the past month or two however I’ve moved more and more of my workflow over to Emacs.
I started with using Org Mode and PDF tools for note taking and reviewing PDFs and task management: https://news.ycombinator.com/item?id=30492373 https://news.ycombinator.com/item?id=30492373. More recently I switched my email over to mu4e: https://www.emacswiki.org/emacs/mu4e https://www.emacswiki.org/emacs/mu4e. Unfortunately I can’t get it to interface properly with Office 365, which has heavily locked down POP/SMTP. So I used a couple of Power Automate flows to store incoming emails into a maildir format directory in OneDrive, which I then read from mu4e:
https://en.wikipedia.org/wiki/Maildir https://en.wikipedia.org/wiki/Maildir. I also use Power Automate flows to grab my calendar and store it to Org files, and watch for queued emails and send send them. Power Automate is just about the worst programming environment ever devised, but because UNIX systems like RFC 2822 (email) and maildir are so simple it didn’t take much fiddling at all!
Ironically, writing a bit of glue to get everything into Emacs offers better integration between email, calendar, todos, and notes, than just using Office 365’s own tools. After trying a ton of web/electron based tools for these purposes, going back to Emacs makes me think of this scene from Star Wars: https://m.youtube.com/watch?v=7hb8AYnRb-4 https://m.youtube.com/watch?v=7hb8AYnRb-4
I’m using the Emacs 28.1 test release on Windows and the Emacs-Mac Port on Mac: https://bitbucket.org/mituharu/emacs-mac/src/master/ https://bitbucket.org/mituharu/emacs-mac/src/master/. The latter has nice features like double buffering that make Emacs, while not modern feeling, quite presentable.
For such a huge change, the elisp native compilation works extremely nicely with every package I’ve thrown at it. Totally stable and ready for prime time.
- iib 5y agoYou may want to try using DavMail [1] for interfacing with Outlook. It is a reverse-proxy for email, so it talks to Outlook, and then mu4e can talk to DavMail directly. [1] http://davmail.sourceforge.net/ http://davmail.sourceforge.net/
- rayiner 5y agoHow the hell did they break email? You need a browser with JS to log into your email server?
- seanw444 5y agoIsn't 2022 wonderful?
- HelloNurse 5y agoFor instance, the Microsoft SMTP server in the cloud is picky about SSL/TLS protocols and ciphers.
- deleted 5y ago[deleted]
- ashtonkem 5y agoAlas, in some orgs you will need permission to authenticate davmail to Outlook. My IT department has not approved davmail.
- pfortuny 5y agoHow can they tell? Honest question because I fear my uni will start doing this out of “security “.
- rayiner 5y agoOffice 365 requires SMTP/POP/IMAP to use an "xoauth" authentication scheme which relies on getting an authentication token from a web browser. The process of getting that token involves sending a request that includes an application ID.
- _ph_ 5y agoRelevant xkcd: https://xkcd.com/297/ https://xkcd.com/297/
- BeetleB 5y agoI gave up the fight to get Emacs to read Outlook emails. Instead, I figured out how to set up Org mode links to Outlook emails, as well as a VBA macro to create an Org mode TODO item based off of an email.
- imglorp 5y agoAs usual https://xkcd.com/297 https://xkcd.com/297 on point
- pfortuny 5y agoFor mu4e and Exchange, I use: -offlineimap both linux and macos. and in my home laptop, davmail because it allows me to use 2FA, which has been implemented at my Uni for external use.
- _emacsomancer_ 5y agoDavmail is great. I've found mbsync/isync more performant than offlineimap.
- pfortuny 5y agoyes everyone says so but I am not keen to change now, just out of laziness: there are too many tender points…
- AlphaGeekZulu 5y ago>[...] I started with using Org Mode and Org PDF for note taking and reviewing PDFs[...] I wonder, what is "Org PDF"?
- rayiner 5y agoSorry, I meant pdftools and org-pdftools: https://github.com/fuxialexander/org-pdftools https://github.com/fuxialexander/org-pdftools
- AlphaGeekZulu 5y agoAh, cool, thanks! I'll give that a try...
- pen2l 5y agoAre you using viper or evil-mode often (or some other thing which gives emacs vi bindings, I think there are a couple)? Because navigating text with emacs gives me the emacs pinky, I'm wondering how folks deal with that. Transposed cpslck with ctrl?
- rayiner 5y agoNo. In my youth I just played through the pain, but I recently just ordered this: http://xahlee.info/kbd/xbows_keyboard_review.html http://xahlee.info/kbd/xbows_keyboard_review.html
- pen2l 5y agoFair (though I recommend you give kinesis a try: https://kinesis-ergo.com/keyboards/advantage360/ https://kinesis-ergo.com/keyboards/advantage360/ ). Separately, I just want to throw it out there, you guys should try sublimity: https://github.com/zk-phi/sublimity https://github.com/zk-phi/sublimity Particularly, the minimap is awesome because it provides an intuition about where one is and that just feels nice.
- darrylb42 5y agoHow did you learn that keyboard exists? It is not on their keyboard page. Kinesis needs a better organized site. I got the Freestyle2 a few weeks ago, enjoying it, still have some issues finding the navigation keys, home, end etc. I really like having my arms pointed straight rather than angled in like with a normal keyboard. Keys are a bit mushy, went from cherry blues.
- spudlyo 5y agoThis model is not yet in full production, and while they claim it will be shipping this summer, it's possible we won't see it this year.
- giraffe_lady 5y agoYeah the caps lock switch is critical I think, since then you can press that key without curling or twisting the finger. Look at technique for musical instruments that require applying pressure with that finger, eg cello, they go through a lot of trouble sometimes to avoid that particular contortion bc of its lack of control and the long-term stress it puts on the hand. If that doesn't work I know people who have used a usb foot pedal and it seems to work well for them. Or, if vi bindings work for you, just use vi bindings. There's no nobility in the emacs bindings. I like them but if something else works better just use it.
- anthk 5y agoDid Emacs solve their freezing issues on background I/O?
- clircle 5y agoI wish we could have double buffering on Windows as well...
- podiki 5y agoFunny, just dealt with the whole O365 authentication just this week. With moving to 2 factor authentication you need to use OAuth 2 to do anything with it. I have my (work) O365 email forwarded, so I do have normal IMAP access. I use isync/mbsync [1] to receive email, goimapnotify [2] to get pushed new email, read/reply/etc with mu4e [3] and org-msg [4] and org-mode, and until recently just plain SMTP to send mail. This last part will break with 2 factor, but found oauth2ms [5] to set up the OAuth to work with O365 SMTP. The trick was to find the "tenet ID" from the Azure page of your organization and to use Thunderbird's credentials [6] (or another mail program, since I can't make new app registrations on Azure to have my own "application"). That should also allow you to use IMAP with OAuth 2 as well, but haven't done that since I still have the forwarding. (As usual, I think the Arch Wiki [7] covers most of this too.) [1] http://isync.sourceforge.net/ http://isync.sourceforge.net/ [2] https://gitlab.com/shackra/goimapnotify https://gitlab.com/shackra/goimapnotify [3] https://www.djcbsoftware.nl/code/mu/mu4e.html https://www.djcbsoftware.nl/code/mu/mu4e.html [4] https://github.com/jeremy-compostella/org-msg https://github.com/jeremy-compostella/org-msg [5] https://github.com/harishkrupo/oauth2ms https://github.com/harishkrupo/oauth2ms [6] https://hg.mozilla.org/comm-central/file/tip/mailnews/base/src/OAuth2Providers.jsm#l127 https://hg.mozilla.org/comm-central/file/tip/mailnews/base/s... [7] https://wiki.archlinux.org/title/Isync#Using_XOAUTH2 https://wiki.archlinux.org/title/Isync#Using_XOAUTH2
- ww520 5y agoThanks for the tips on PDF tools. I also save org files on shared folders to sync among different machines. I use GnuPG via the epg package to encrypt all files before saving to the shared folders. GnuPG has relatively good cross platform support that I can move the encrypted files between different platforms.