aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAugusto Stoffel2023-09-27 18:35:32 +0200
committerStefan Kangas2024-01-10 23:07:09 +0100
commitc12166de380397168e374931c4e59bbb3a09bf21 (patch)
treede94be3d58da620f08de40cdb8cd81a0d4168613
parenta0133f63450e5458dc5b6d0bb7c91a00ef7e3aa3 (diff)
downloademacs-c12166de380397168e374931c4e59bbb3a09bf21.tar.gz
emacs-c12166de380397168e374931c4e59bbb3a09bf21.zip
Use auth-info-mode for non-hidden authinfo and netrc files
* files.el (auto-mode-alist): Match non-hidden authinfo and netrc files, since it is reasonable to store passwords in ~/.emacs.d/authinfo.gpg or a similarly named file. (Bug#66241)
-rw-r--r--lisp/files.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/files.el b/lisp/files.el
index 8b4e4394e5a..9c8914bfc50 100644
--- a/lisp/files.el
+++ b/lisp/files.el
@@ -3059,7 +3059,7 @@ ARC\\|ZIP\\|LZH\\|LHA\\|ZOO\\|[JEW]AR\\|XPI\\|RAR\\|CBR\\|7Z\\|SQUASHFS\\)\\'" .
3059 ("\\.docbook\\'" . sgml-mode) 3059 ("\\.docbook\\'" . sgml-mode)
3060 ("\\.com\\'" . dcl-mode) 3060 ("\\.com\\'" . dcl-mode)
3061 ("/config\\.\\(?:bat\\|log\\)\\'" . fundamental-mode) 3061 ("/config\\.\\(?:bat\\|log\\)\\'" . fundamental-mode)
3062 ("/\\.\\(authinfo\\|netrc\\)\\'" . authinfo-mode) 3062 ("/\\.?\\(authinfo\\|netrc\\)\\'" . authinfo-mode)
3063 ;; Windows candidates may be opened case sensitively on Unix 3063 ;; Windows candidates may be opened case sensitively on Unix
3064 ("\\.\\(?:[iI][nN][iI]\\|[lL][sS][tT]\\|[rR][eE][gG]\\|[sS][yY][sS]\\)\\'" . conf-mode) 3064 ("\\.\\(?:[iI][nN][iI]\\|[lL][sS][tT]\\|[rR][eE][gG]\\|[sS][yY][sS]\\)\\'" . conf-mode)
3065 ("\\.la\\'" . conf-unix-mode) 3065 ("\\.la\\'" . conf-unix-mode)