Function: authinfo-mode

authinfo-mode is an autoloaded, interactive and byte-compiled function defined in auth-source.el.gz.

Signature

(authinfo-mode)

Documentation

Mode for editing .authinfo/.netrc files.

This is just like fundamental-mode, but has basic syntax highlighting and hides passwords. Passwords are revealed when point is moved into the passwords (see authinfo-hide-elements).

This mode runs the hook authinfo-mode-hook, as the final or penultimate step during initialization.

Probably introduced at or before Emacs version 27.1.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/auth-source.el.gz
;;;###autoload
(define-derived-mode authinfo-mode fundamental-mode "Authinfo"
  "Mode for editing .authinfo/.netrc files.

This is just like `fundamental-mode', but has basic syntax
highlighting and hides passwords.  Passwords are revealed when
point is moved into the passwords (see `authinfo-hide-elements').

\\{authinfo-mode-map}"
  (font-lock-add-keywords nil authinfo--keywords)
  (setq-local comment-start "#")
  (setq-local comment-end "")
  (when authinfo-hide-elements
    (authinfo--hide-passwords (point-min) (point-max))
    (reveal-mode)))