-other buffer names are changed.")
-
-(defvar uniquify-min-dir-content 0
- "*Minimum parts of directory pathname included in buffer name.")
-
-(defvar uniquify-separator nil
+other buffer names are changed."
+ :type 'boolean
+ :group 'uniquify)
+
+(defcustom uniquify-ignore-buffers-re nil
+ "*Regular expression matching buffer names that should not be uniquified.
+For instance, set this to \"^draft-[0-9]+$\" to avoid having uniquify rename
+draft buffers even if `uniquify-after-kill-buffer-p' is non-nil and the
+visited file name isn't the same as that of the buffer."
+ :type '(choice (const :tag "Uniquify all buffers" nil) regexp)
+ :group 'uniquify)
+
+(defcustom uniquify-min-dir-content 0
+ "*Minimum number of directory name components included in buffer name."
+ :type 'integer
+ :group 'uniquify)
+
+(defcustom uniquify-separator nil