Emacs:停止gpg密码的弹出窗口 [英] Emacs: Stop popup window for gpg passphrase

查看:120
本文介绍了Emacs:停止gpg密码的弹出窗口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

emacs就会烦人地弹出窗口并询问密码。我想问一下我在minibuffer中输入密码。

emacs is annoyingly popping up window and asking for pass phrase whenever I open a encrypted file (somefile.gpg, .authinfo.gpg). I would like it instead ask me for password in minibuffer.

是否有任何配置选项??

is there any configuration option for that.?

编辑:
需要注意的重要一点是,如果我在弹出窗口中按Escape键,emacs将在minibuffer中要求输入密码。因此,emacs中存在回退,我想将这种退回方法作为首选。

Important to note, if I press escape on popup window, emacs will ask for password in minibuffer. So there is fallback exist in emacs, I like to make that fallback method as first choice.

更新:
Emacs版本:GNU Emacs 24.3.50.12(x86_64 -unknown-linux-gnu,GTK +版本3.4.2)基于密封的2013年5月28日的

UPDATE: Emacs version: GNU Emacs 24.3.50.12 (x86_64-unknown-linux-gnu, GTK+ Version 3.4.2) of 2013-05-28 on sealion

推荐答案

现在,我将以下内容放在 .emacs 中,这最终禁用了gui提示符。

Now I placed the following in .emacs which is finally disabling the gui prompt.

;; Do not use gpg agent when runing in terminal
(defadvice epg--start (around advice-epg-disable-agent activate)
  (let ((agent (getenv "GPG_AGENT_INFO")))
    (setenv "GPG_AGENT_INFO" nil)
    ad-do-it
    (setenv "GPG_AGENT_INFO" agent)))

这篇关于Emacs:停止gpg密码的弹出窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆