【问题标题】:Emacs in windows, gpg errorWindows中的Emacs,gpg错误
【发布时间】:2013-04-13 17:04:00
【问题描述】:

我在 Windows 上使用 emacs。每当我希望使用 epa-encrypt-file 加密文件内容时都会出现以下错误:

Searching for program: Permission denied, gpg

我该如何纠正这个问题?

编辑

我将 gpg 与 .emacs 安装在同一位置,并将其添加到 .emacs:

(when (string-equal system-type "windows-nt")
  (setq exec-path
'(
"e:/GnuPG/"
)
 ))

现在显示的错误是:

peculiar error: "Can't decrypt", "Exit"

【问题讨论】:

  • 你在windows上安装了gpg吗?如果是这样,请确保它在您的执行路径中。
  • 请看编辑。
  • 我一直在挖掘 epg elisp 源,似乎找不到答案,抱歉,我没有 Windows 机器可以提供进一步的帮助。

标签: windows emacs elisp gnupg


【解决方案1】:

(setq 显式外壳文件名 “C:/程序文件(x86)/Git/bin/bash.exe”) (setq shell-file-name 显式-shell-file-name) (add-to-list 'exec-path "C:/Program Files (x86)/Git/bin")

Windows, Emacs, Git Bash, and shell-command

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2021-10-13
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-02-07
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多