0

I am using emacs on windows. Whenever I look to encrypt file contents using epa-encrypt-file in gives the following error:

Searching for program: Permission denied, gpg

How do I correct this?

EDIT

I installed gpg at the same place as the .emacs and added this to .emacs:

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

Now the shown error is:

peculiar error: "Can't decrypt", "Exit"
Jens Erat
  • 37,523
  • 16
  • 80
  • 96
sudeepdino008
  • 3,194
  • 5
  • 39
  • 73

1 Answers1

0

(setq explicit-shell-file-name "C:/Program Files (x86)/Git/bin/bash.exe") (setq shell-file-name explicit-shell-file-name) (add-to-list 'exec-path "C:/Program Files (x86)/Git/bin")

see Windows, Emacs, Git Bash, and shell-command

Community
  • 1
  • 1
hammer
  • 1