diff options
| -rw-r--r-- | lisp/dired-x.el | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/lisp/dired-x.el b/lisp/dired-x.el index 1a1cdd5a542..f5e6250b475 100644 --- a/lisp/dired-x.el +++ b/lisp/dired-x.el | |||
| @@ -45,12 +45,8 @@ | |||
| 45 | ;; (add-hook 'dired-load-hook | 45 | ;; (add-hook 'dired-load-hook |
| 46 | ;; (function (lambda () | 46 | ;; (function (lambda () |
| 47 | ;; (load "dired-x") | 47 | ;; (load "dired-x") |
| 48 | ;; ;; Set global variables here. For example: | 48 | ;; ;; Set variables here. For example: |
| 49 | ;; ;; (setq dired-guess-shell-gnutar "gtar") | 49 | ;; ;; (setq dired-guess-shell-gnutar "gtar") |
| 50 | ;; ))) | ||
| 51 | ;; (add-hook 'dired-mode-hook | ||
| 52 | ;; (function (lambda () | ||
| 53 | ;; ;; Set buffer-local variables here. For example: | ||
| 54 | ;; ;; (dired-omit-mode 1) | 50 | ;; ;; (dired-omit-mode 1) |
| 55 | ;; ))) | 51 | ;; ))) |
| 56 | ;; | 52 | ;; |
| @@ -1130,17 +1126,11 @@ You can set this variable in your ~/.emacs. For example, to add rules for | |||
| 1130 | :group 'dired-x | 1126 | :group 'dired-x |
| 1131 | :type '(alist :key-type regexp :value-type (repeat sexp))) | 1127 | :type '(alist :key-type regexp :value-type (repeat sexp))) |
| 1132 | 1128 | ||
| 1133 | (defcustom dired-guess-shell-case-fold-search t | ||
| 1134 | "If non-nil, `dired-guess-shell-alist-default' and | ||
| 1135 | `dired-guess-shell-alist-user' are matched case-insensitively." | ||
| 1136 | :group 'dired-x | ||
| 1137 | :type 'boolean) | ||
| 1138 | |||
| 1139 | (defun dired-guess-default (files) | 1129 | (defun dired-guess-default (files) |
| 1140 | "Guess a shell commands for FILES. Return command or list of commands. | 1130 | "Guess a shell commands for FILES. Return command or list of commands. |
| 1141 | See `dired-guess-shell-alist-user'." | 1131 | See `dired-guess-shell-alist-user'." |
| 1142 | 1132 | ||
| 1143 | (let* ((case-fold-search dired-guess-shell-case-fold-search) | 1133 | (let* ((case-fold-search t) |
| 1144 | ;; Prepend the user's alist to the default alist. | 1134 | ;; Prepend the user's alist to the default alist. |
| 1145 | (alist (append dired-guess-shell-alist-user | 1135 | (alist (append dired-guess-shell-alist-user |
| 1146 | dired-guess-shell-alist-default)) | 1136 | dired-guess-shell-alist-default)) |