File: uniquify.el.html

Emacs's traditional method for making buffer names unique adds <2>, <3>, etc. to the end of (all but one of) the buffers. This file replaces that behavior, for buffers visiting files and Dired buffers, with a uniquification that adds parts of the file name until the buffer names are unique. For instance, buffers visiting /u/mernst/tmp/Makefile and
/usr/projects/zaphod/Makefile would be named Makefile|tmp and
Makefile|zaphod, respectively (instead of Makefile and Makefile<2>). Other buffer name styles are also available.

To use this file, do (require 'uniquify) and set uniquify-buffer-name-style to one of its non-nil alternative values.

For other options, see "User-visible variables", below.

Defined variables (13)

uniquify--stateless-curnameThe current unique name of this buffer in ‘uniquify-get-unique-names’.
uniquify-after-kill-buffer-flagIf non-nil, rerationalize buffer names after a buffer has been killed.
uniquify-after-kill-buffer-pIf non-nil, rerationalize buffer names after a buffer has been killed.
uniquify-buffer-name-styleHow to construct unique buffer names for files with the same base name.
uniquify-dirname-transformFunction to transform buffer’s directory name when uniquifying buffer’s name.
uniquify-ignore-buffers-reRegular expression matching buffer names that should not be uniquified.
uniquify-list-buffers-directory-modesList of modes for which uniquify should obey ‘list-buffers-directory’.
uniquify-managedNon-nil if the name of this buffer is managed by uniquify.
uniquify-min-dir-contentMinimum number of directory name components included in buffer name.
uniquify-separatorString separator for buffer name components.
uniquify-strip-common-suffixIf non-nil, strip common directory suffixes of conflicting files.
uniquify-trailing-separator-flagNon-nil means add a file name separator to Dired buffer names.
uniquify-trailing-separator-pNon-nil means add a file name separator to Dired buffer names.

Defined functions (31)

uniquify--buffer-refresh()
uniquify--create-file-buffer-advice(BUF FILENAME BASENAME)
uniquify--rename-buffer-advice(NEWNAME &optional UNIQUE)
uniquify--set-option(VARIABLE VALUE)
uniquify-buffer-base-name()
uniquify-buffer-file-name(BUFFER)
uniquify-get-proposed-name(BASE DIRNAME &optional DEPTH)
uniquify-get-unique-names(BUFFERS)
uniquify-item-base(uniquify-item-base X)
uniquify-item-base--inliner(INLINE--FORM X)
uniquify-item-buffer(uniquify-item-buffer X)
uniquify-item-buffer--inliner(INLINE--FORM X)
uniquify-item-dirname(uniquify-item-dirname X)
uniquify-item-dirname--inliner(INLINE--FORM X)
uniquify-item-greaterp(ITEM1 ITEM2)
uniquify-item-p(X)
uniquify-item-p--inliner(INLINE--FORM X)
uniquify-item-proposed(uniquify-item-proposed X)
uniquify-item-proposed--inliner(INLINE--FORM X)
uniquify-kill-buffer-function()
uniquify-make-item(BASE DIRNAME BUFFER &optional PROPOSED)
uniquify-make-item--cmacro(CL-WHOLE-ARG BASE DIRNAME BUFFER &optional PROPOSED)
uniquify-maybe-rerationalize-w/o-cb()
uniquify-rationalize(FIX-LIST)
uniquify-rationalize--generic(FIX-LIST RENAME-BUFFER-FN GET-BUFFER-FN)
uniquify-rationalize-a-list(FIX-LIST DEPTH RENAME-BUFFER-FN GET-BUFFER-FN)
uniquify-rationalize-conflicting-sublist(CONF-LIST OLD-NAME DEPTH RENAME-BUFFER-FN GET-BUFFER-FN)
uniquify-rationalize-file-buffer-names(BASE DIRNAME NEWBUF)
uniquify-rename-buffer(ITEM NEWNAME)
uniquify-rerationalize-w/o-cb(FIX-LIST)
uniquify-unload-function()

Defined faces (0)