[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Stop emacs caching gpg keys
From: |
Colin Baxter |
Subject: |
Re: Stop emacs caching gpg keys |
Date: |
Sat, 30 Jan 2021 16:06:45 +0000 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) |
>>>>> moasenwood--- via Users list for the GNU Emacs text editor
>>>>> <help-gnu-emacs@gnu.org> writes:
> Colin Baxter wrote:
>> This is not so straightforward if I encrypt a file using
>> emacs. On saving, and removing the buffer, a supposedly encrypted
>> file can be opened without the need to enter a password. Of
>> course, I can open a shell within emacs and run 'gpgconf --kill
>> gpg-agent' in order to clear the cache.
> What do you do to encrypt from Emacs?
I do everything in emacs - don't you :-). Seriously, my use of emacs is
to encrypt org files.
>> But is there a simpler way - an elisp way - of achieving the same
>> result?
> There is always `shell-command', I guess...
Yes, but do you know of any elisp hook that I could use to call the
shell-command, say whenever I close a encrypted buffer?
Best wishes,