Variable: directory-abbrev-alist
directory-abbrev-alist is a customizable variable defined in
files.el.gz.
Value
nil
Documentation
Alist of abbreviations for file directories.
A list of elements of the form (FROM . TO), each meaning to replace a match for FROM with TO when a directory name matches FROM. This replacement is done when setting up the default directory of a newly visited file buffer.
FROM is a regexp that is matched against directory names anchored at the first character, so it should start with a "\\\\\\=`", or, if directory names cannot have embedded newlines, with a "^".
FROM and TO should be equivalent names, which refer to the
same directory. TO should be an absolute directory name.
Do not use ~ in the TO strings.
Use this feature when you have directories that you normally refer to via absolute symbolic links. Make TO the name of the link, and FROM a regexp matching the name it is linked to.
Probably introduced at or before Emacs version 19.20.
Source Code
;; Defined in /usr/src/emacs/lisp/files.el.gz
(defcustom directory-abbrev-alist
nil
"Alist of abbreviations for file directories.
A list of elements of the form (FROM . TO), each meaning to replace
a match for FROM with TO when a directory name matches FROM. This
replacement is done when setting up the default directory of a
newly visited file buffer.
FROM is a regexp that is matched against directory names anchored at
the first character, so it should start with a \"\\\\\\=`\", or, if
directory names cannot have embedded newlines, with a \"^\".
FROM and TO should be equivalent names, which refer to the
same directory. TO should be an absolute directory name.
Do not use `~' in the TO strings.
Use this feature when you have directories that you normally refer to
via absolute symbolic links. Make TO the name of the link, and FROM
a regexp matching the name it is linked to."
:type '(repeat (cons :format "%v"
:value ("\\`" . "")
(regexp :tag "From")
(string :tag "To")))
:group 'abbrev
:group 'find-file)