diff options
author | Lars Ingebrigtsen <larsi@gnus.org> | 2019-09-21 12:03:55 +0200 |
---|---|---|
committer | Lars Ingebrigtsen <larsi@gnus.org> | 2019-09-21 12:04:00 +0200 |
commit | 893111f48abd504208408904ea54bc487641756d (patch) | |
tree | becee12bc572cdf8644abf947f5997bfde257915 /lisp/files.el | |
parent | 2c7224f8942e6338ea9dce727a7b573bf4f3f5a6 (diff) | |
download | emacs-893111f48abd504208408904ea54bc487641756d.tar.gz |
Hide passwords in .authinfo and .netrc files
* lisp/auth-source.el (authinfo-mode): New mode (bug#28785).
(authinfo--hide-passwords, authinfo--toggle-display): New functions.
* lisp/files.el (auto-mode-alist): Use authinfo-mode for .authinfo
and .netrc files.
Diffstat (limited to 'lisp/files.el')
-rw-r--r-- | lisp/files.el | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lisp/files.el b/lisp/files.el index 0c3da1fe3cc..8c355b02aa1 100644 --- a/lisp/files.el +++ b/lisp/files.el @@ -2811,6 +2811,7 @@ ARC\\|ZIP\\|LZH\\|LHA\\|ZOO\\|[JEW]AR\\|XPI\\|RAR\\|CBR\\|7Z\\)\\'" . archive-mo ("\\.docbook\\'" . sgml-mode) ("\\.com\\'" . dcl-mode) ("/config\\.\\(?:bat\\|log\\)\\'" . fundamental-mode) + ("/\\.\\(authinfo\\|netrc\\)\\'" . authinfo-mode) ;; Windows candidates may be opened case sensitively on Unix ("\\.\\(?:[iI][nN][iI]\\|[lL][sS][tT]\\|[rR][eE][gG]\\|[sS][yY][sS]\\)\\'" . conf-mode) ("\\.la\\'" . conf-unix-mode) |