emacs: auth-source: set newly introduced authinfo-hidden
authorAmin Bandali <bandali@gnu.org>
Mon, 23 Sep 2019 13:56:58 +0000 (09:56 -0400)
committerAmin Bandali <bandali@gnu.org>
Mon, 23 Sep 2019 13:56:58 +0000 (09:56 -0400)
https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=87b685f4365f663ef1258cd60616034cd2cc89c9
https://lists.gnu.org/archive/html/emacs-devel/2019-09/msg00497.html

.emacs.d/init.el

index 422930e..fb7fa05 100644 (file)
@@ -490,6 +490,11 @@ For disabling the behaviour for certain buffers and/or modes."
   :custom
   ((epg-gpg-program (executable-find "gpg"))))
 
+(use-feature auth-source
+  :custom
+  (auth-sources '("~/.authinfo.gpg"))
+  (authinfo-hidden (regexp-opt '("password" "client-secret" "token"))))
+
 \f
 ;;; General bindings