试试 with-proxy: 在局部范围内使用代理
(with-proxy (eshell))
也可以写个 advice 把某个具体的函数用 with-proxy 包裹起来,尽可能缩小影响范围。
with-proxy