Variable: connection-local-criteria-alist

connection-local-criteria-alist is a customizable variable defined in files-x.el.gz.

Value

(((:application vc-git) vc-git-connection-default-profile)
 ((:application tramp :protocol "sshfs")
  tramp-sshfs-connection-local-default-profile)
 ((:application tramp :protocol "smb")
  tramp-smb-connection-local-default-system-profile
  tramp-smb-connection-local-powershell-profile)
 ((:application tramp :protocol "androidsu")
  tramp-androidsu-connection-local-default-profile
  tramp-adb-connection-local-default-shell-profile
  tramp-adb-connection-local-default-ps-profile)
 ((:application tramp :protocol "adb")
  tramp-adb-connection-local-default-shell-profile
  tramp-adb-connection-local-default-ps-profile)
 ((:application tramp :protocol "kubernetes")
  tramp-kubernetes-connection-local-default-profile)
 ((:application tramp) tramp-connection-local-default-system-profile
  tramp-connection-local-default-shell-profile)
 ((:application eshell) eshell-connection-default-profile))

Documentation

Alist mapping connection criteria to connection profiles.

Each element in this list has the form (CRITERIA PROFILES). CRITERIA is a plist identifying a connection and the application using this connection. Property names might be :application,
:protocol, :user and :machine. The property value of
:application is a symbol, all other property values are
strings. All properties are optional; if CRITERIA is nil, it always applies. PROFILES is a list of connection profiles (symbols).

This variable was added, or its default value changed, in Emacs 29.1.

View in manual

Probably introduced at or before Emacs version 29.1.

Source Code

;; Defined in /usr/src/emacs/lisp/files-x.el.gz
(defcustom connection-local-criteria-alist nil
  "Alist mapping connection criteria to connection profiles.
Each element in this list has the form (CRITERIA PROFILES).
CRITERIA is a plist identifying a connection and the application
using this connection.  Property names might be `:application',
`:protocol', `:user' and `:machine'.  The property value of
`:application' is a symbol, all other property values are
strings.  All properties are optional; if CRITERIA is nil, it
always applies.
PROFILES is a list of connection profiles (symbols)."
  :type '(repeat (cons (plist :tag "Criteria"
                              ;; Give the most common options as checkboxes.
			      :options (((const :format "%v " :application)
                                         symbol)
                                        ((const :format "%v " :protocol) string)
                                        ((const :format "%v " :user) string)
                                        ((const :format "%v " :machine) string)))
                       (repeat :tag "Profiles"
                               (symbol :tag "Profile"))))
  :group 'files
  :group 'tramp
  :version "29.1")