]> code.delx.au - gnu-emacs-elpa/commitdiff
ivy.el (ivy-extra-directories): Improve :type
authorOleh Krehel <ohwoeowho@gmail.com>
Sat, 17 Oct 2015 13:52:52 +0000 (15:52 +0200)
committerOleh Krehel <ohwoeowho@gmail.com>
Sat, 17 Oct 2015 13:52:52 +0000 (15:52 +0200)
ivy.el

diff --git a/ivy.el b/ivy.el
index ead3742688dd2f2391ec7e4a407c7d6d369b2d40..e6a9ac9aa4dc1dc100a4b0991d62a2c6d2a84a11 100644 (file)
--- a/ivy.el
+++ b/ivy.el
@@ -108,7 +108,10 @@ This is usually meant as a quick exit out of the minibuffer."
 (defcustom ivy-extra-directories '("../" "./")
   "Add this to the front of the list when completing file names.
 Only \"./\" and \"../\" apply here. They appear in reverse order."
-  :type 'list)
+  :type '(repeat :tag "Dirs"
+          (choice
+           (const :tag "Parent Directory" "../")
+           (const :tag "Current Directory" "./"))))
 
 (defcustom ivy-use-virtual-buffers nil
   "When non-nil, add `recentf-mode' and bookmarks to `ivy-switch-buffer'."