aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorReuben Thomas2016-11-08 22:01:59 +0000
committerReuben Thomas2016-12-02 16:04:42 +0000
commite22cca7d23eb9e91b2923cbdad8042e4a4c69811 (patch)
tree75d98672c204aa8b187e66c93abcdfd16de64995
parent50b9ddfc132ead94a932e55ac39211b483109592 (diff)
downloademacs-e22cca7d23eb9e91b2923cbdad8042e4a4c69811.tar.gz
emacs-e22cca7d23eb9e91b2923cbdad8042e4a4c69811.zip
Remove pre-customize dired-x.el documentation
* lisp/dired-x.el (Commentary): Remove USAGE section explaining how to use dired-x from .emacs. It is now fully customizable. * lisp/dired-x.el (dired-guess-shell-alist-user): Remove explanation of how to set this custom variable in .emacs. It should be customized.
-rw-r--r--lisp/dired-x.el26
1 files changed, 1 insertions, 25 deletions
diff --git a/lisp/dired-x.el b/lisp/dired-x.el
index 5a0d8834798..2bebb698413 100644
--- a/lisp/dired-x.el
+++ b/lisp/dired-x.el
@@ -29,20 +29,6 @@
29;; This is based on Sebastian Kremer's excellent dired-x.el (Dired Extra), 29;; This is based on Sebastian Kremer's excellent dired-x.el (Dired Extra),
30;; version 1.191, adapted for GNU Emacs. See the `dired-x' info pages. 30;; version 1.191, adapted for GNU Emacs. See the `dired-x' info pages.
31 31
32;; USAGE: In your ~/.emacs,
33;;
34;; (add-hook 'dired-load-hook
35;; (lambda ()
36;; (load "dired-x")
37;; ;; Set global variables here. For example:
38;; ;; (setq dired-guess-shell-gnutar "gtar")
39;; ))
40;; (add-hook 'dired-mode-hook
41;; (lambda ()
42;; ;; Set buffer-local variables here. For example:
43;; ;; (dired-omit-mode 1)
44;; ))
45;;
46;; At load time dired-x.el will install itself and bind some dired keys. 32;; At load time dired-x.el will install itself and bind some dired keys.
47;; Some dired.el and dired-aux.el functions have extra features if 33;; Some dired.el and dired-aux.el functions have extra features if
48;; dired-x is loaded. 34;; dired-x is loaded.
@@ -1106,17 +1092,7 @@ and the rest will be added temporarily to the history and can be retrieved
1106with \\[previous-history-element] (M-p) . 1092with \\[previous-history-element] (M-p) .
1107 1093
1108The variable `dired-guess-shell-case-fold-search' controls whether 1094The variable `dired-guess-shell-case-fold-search' controls whether
1109REGEXP is matched case-sensitively. 1095REGEXP is matched case-sensitively."
1110
1111You can set this variable in your ~/.emacs. For example, to add rules for
1112`.foo' and `.bar' files, write
1113
1114 (setq dired-guess-shell-alist-user
1115 '((\"\\\\.foo\\\\'\" \"FOO-COMMAND\")
1116 (\"\\\\.bar\\\\'\"
1117 (if condition
1118 \"BAR-COMMAND-1\"
1119 \"BAR-COMMAND-2\"))))"
1120 :group 'dired-x 1096 :group 'dired-x
1121 :type '(alist :key-type regexp :value-type (repeat sexp))) 1097 :type '(alist :key-type regexp :value-type (repeat sexp)))
1122 1098