I've set up excorporate mode so that I can use emacs to read my outlook calendar. However I am annoyed by having to input a username/password every time I open emacs. I tried a .netrc:

machine outlook.office365.com login me@somewhere.com password 'secret'

But it doesn't work. Can anyone point me further in the right direction?

  • 1
    I'd start by setting auth-source-debug to t, and looking in the *Messages* buffer. Perhaps you need a port keyword as well (I don't see excorporate calling auth-source, so it must be calling it indirectly if at all) – rpluim Mar 25 at 21:14
  • yep, that works outlook.office365.com:443 did it – singingfish Mar 25 at 22:49

as per the comment from @rpluim adding the port outlook.office365.com:443 did the job nicely.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.