Ted Zlatanov writes: [...] > You can also structure `auth-sources' so a specific host is found in > ~/.authinfo but all others come from ~/.authinfo.gpg. > > First in the list, put the ~/.authinfo entry, and add an extra parameter > "host: regex" with `M-x customize-variable'. The equivalent Lisp: > > #+begin_src lisp > (setq auth-sources '((:source "~/.authinfo" :host "yourhost" :port t) > (:source "~/.authinfo.gpg" :host t :port t))) > > #+end_src > > Let me know if it works OK for you or not. Sadly it doesn't. It seems to try all sources. I've set it to this: --8<---------------cut here---------------start------------->8--- (setq auth-sources '((:source "/dev/null" :host "localhost") (:source "~/.authinfo.gpg" :host t))) --8<---------------cut here---------------end--------------->8--- It still asks me for that. -- Carl Lei (XeCycle) Department of Physics, Shanghai Jiao Tong University OpenPGP public key: 7795E591 Fingerprint: 1FB6 7F1F D45D F681 C845 27F7 8D71 8EC4 7795 E591