Skip to content

Commit

Permalink
fix(custom): fix custom type specifications
Browse files Browse the repository at this point in the history
  • Loading branch information
tarsius committed Sep 29, 2023
1 parent 7b330ef commit c728b04
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions dirvish.el
Original file line number Diff line number Diff line change
Expand Up @@ -187,8 +187,8 @@ and its ARGS is issued to open the file externally. The special
placeholder \"%f\" in the ARGS is replaced by the FILENAME at
runtime. Set it to nil disables this feature."
:group 'dirvish
:type '(alist :key-type ((repeat string) :tag "File extensions")
:value-type ((repeat string) :tag "External command and args")))
:type '(alist :key-type (repeat :tag "File extensions" string)
:value-type (repeat :tag "External command and args" string)))

(defcustom dirvish-reuse-session t
"Whether to reuse the hidden sessions.
Expand Down
8 changes: 4 additions & 4 deletions extensions/dirvish-icons.el
Original file line number Diff line number Diff line change
Expand Up @@ -53,26 +53,26 @@ Values are interpreted as follows:
- all-the-icons, meaning let `all-the-icons.el' to do the coloring.
- A face that is used for all the icons.
- nil, inherit face at point."
:group 'dirvish :type '(choice face symbol nil))
:group 'dirvish :type '(choice face symbol (const nil)))

(defcustom dirvish-nerd-icons-offset 0.00
"Icon's vertical offset used for `nerd-icons' backend.
Set it to nil to use the default offset from `nerd-icons'."
:group 'dirvish :type '(choice (float nil)))
:group 'dirvish :type '(choice float (const nil)))

(defcustom dirvish-nerd-icons-height nil
"Icon height used for `nerd-icons' backend.
The height of the icon is scaled to this value (try 0.8).
Set it to nil to use the default height from `nerd-icons'."
:group 'dirvish :type '(choice (float nil)))
:group 'dirvish :type '(choice float (const nil)))

(defcustom dirvish-nerd-icons-palette 'nerd-icons
"Coloring style used for file `nerd-icons' backend.
Values are interpreted as follows:
- nerd-icons, meaning let `nerd-icons.el' to do the coloring.
- A face that is used for all the icons.
- nil, inherit face at point."
:group 'dirvish :type '(choice face symbol nil))
:group 'dirvish :type '(choice face symbol (const nil)))

(defcustom dirvish-vscode-icon-size 32
"Icon (image pixel) size used for `vscode-icon' backend.
Expand Down
4 changes: 2 additions & 2 deletions extensions/dirvish-peek.el
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@
If this value is nil, a candidate fetcher function is
automatically choosed according to your completion framework
being used at runtime."
:group 'dirvish :type '(choice function nil))
:group 'dirvish :type '(choice function (const nil)))

(defcustom dirvish-peek-categories '(file project-file library)
"Minibuffer metadata categories to show file preview."
:group 'dirvish :type 'list)
:group 'dirvish :type '(repeat symbol))

(defvar dirvish-peek--cand-fetcher nil)
(defun dirvish-peek--prepare-cand-fetcher ()
Expand Down
2 changes: 1 addition & 1 deletion extensions/dirvish-vc.el
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ This value is consumed by `vc-state' attribute in Dirvish. FACE
is the face used for that VC-STATE. See `vc-state' in (in
vc-hooks.el) for detail explanation of these states."
:group 'dirvish
:type '(alist :key-type symbol :value-type '(symbol :tag "Face")))
:type '(alist :key-type symbol :value-type (symbol :tag "Face")))

(defface dirvish-vc-needs-merge-face
'((((background dark)) (:background "#500f29"))
Expand Down
2 changes: 1 addition & 1 deletion extensions/dirvish-yank.el
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ The value can be a symbol or a function that returns a fileset."

(defcustom dirvish-yank-rsync-args '("--archive" "--verbose" "--compress" "--info=progress2")
"The default options for the rsync command."
:type 'list :group 'dirvish)
:type '(repeat string) :group 'dirvish)

(defcustom dirvish-yank-keep-success-log t
"If non-nil then keep logs of all completed yanks.
Expand Down

0 comments on commit c728b04

Please sign in to comment.