emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Hiding passords in authinfo (was: Automatic minor modes?)


From: Stefan Monnier
Subject: Hiding passords in authinfo (was: Automatic minor modes?)
Date: Sun, 14 Oct 2018 14:23:57 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

> When I open a file such as authinfo.json.gpg, the passwords are clearly
> visible to anyone that can see my screen.  I'd like to hide them
> visually.

I'd recommend to do this via jit-lock-register.

> Ideally in a way that reveals them when I move inside them,
> like `prettify-symbols-mode` does. Stefan suggested `reveal-mode` may be
> the right place to do this work, so I investigated a little.

No, I suggested reveal-mode might be the right thing to use to do that
"reveal" part.  reveal-mode doesn't deal with hiding, only with revealing.


        Stefan



reply via email to

[Prev in Thread] Current Thread [Next in Thread]