diff options
| -rw-r--r-- | lisp/dired-x.el | 26 |
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 | |||
| 1106 | with \\[previous-history-element] (M-p) . | 1092 | with \\[previous-history-element] (M-p) . |
| 1107 | 1093 | ||
| 1108 | The variable `dired-guess-shell-case-fold-search' controls whether | 1094 | The variable `dired-guess-shell-case-fold-search' controls whether |
| 1109 | REGEXP is matched case-sensitively. | 1095 | REGEXP is matched case-sensitively." |
| 1110 | |||
| 1111 | You 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 | ||