I'm trying to configure Emacs to use CNTLM to work with my company's authenticating proxy. I've followed the steps to configure CNTLM, and I've got the following in my init.el file:

(setq url-proxy-services
      '(("http" . "")
        ("https" . "")))

However, every time I try to perform a package-refresh-contents or a package-list command, I see a prompt at the bottom of Emacs with "Username [for Cntlm for parent]:". What am I missing?

  • Maybe that existing question can help with your configuration stackoverflow.com/questions/2783267/… – rimero Jan 27 '16 at 0:54
  • Thanks for that, I used that to setup CNTLM and configure emacs to use it. My issue is that I keep getting prompted for credentials. I know there was an issue with http-url.el that prevented it from caching credentials, but I am using Emacs 24.5, and I verified that file has been fixed. – Delmania Jan 27 '16 at 14:13
  • Is the problem that Emacs doesn't remember the credentials once you've entered them? – Alan Third Dec 15 '16 at 13:21

I had the same issue on Emacs 24.5, but when I upgraded to Emacs 25rc1, it went away. Perhaps the same fix will work for you?


This is how I start Emacs in shell, works with 24+, should also work with 25,

http_proxy= https_proxy= emacs

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.