Commit eea84fe5 authored by Lars Magne Ingebrigtsen's avatar Lars Magne Ingebrigtsen
Browse files

(dired-guess-shell-alist-user): Clarify the example a bit

Fixes: debbugs:2030
parent 8a93078b
......@@ -3,6 +3,7 @@
* dired-x.el (dired-guess-default): Remove duplicate shell command
entries (bug#2028).
(dired-guess-default): Fix grammar in doc string (bug#2028).
(dired-guess-shell-alist-user): Clarify the example a bit (bug#2030).
* subr.el (remove-duplicates): New conveniency function.
......
......@@ -1056,12 +1056,11 @@ You can set this variable in your ~/.emacs. For example, to add rules for
`.foo' and `.bar' files, write
\(setq dired-guess-shell-alist-user
(list (list \"\\\\.foo\\\\'\" \"FOO-COMMAND\");; fixed rule
;; possibly more rules ...
(list \"\\\\.bar\\\\'\";; rule with condition test
'(if condition
\"BAR-COMMAND-1\"
\"BAR-COMMAND-2\")))\)"
'((\"\\\\.foo\\\\'\" \"FOO-COMMAND\")
(\"\\\\.bar\\\\'\"
(if condition
\"BAR-COMMAND-1\"
\"BAR-COMMAND-2\"))))"
:group 'dired-x
:type '(alist :key-type regexp :value-type (repeat sexp)))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment