Next: Omitting Files in Dired, Previous: Introduction, Up: Top

## 2 Installation

This manual describes the Dired features provided by the file `dired-x.el`. To take advantage of these features, you must load the file and (optionally) set some variables.

In your `.emacs` file in your home directory, or in the system-wide initialization file `default.el` in the `site-lisp` directory, put

         (add-hook 'dired-load-hook
                   (lambda ()
                     (load "dired-x")
                     ;; Set dired-x global variables here.  For example:
                     ;; (setq dired-guess-shell-gnutar "gtar")
                     ;; (setq dired-x-hands-off-my-keys nil)
                     ))
         (add-hook 'dired-mode-hook
                   (lambda ()
                     ;; Set dired-x buffer-local variables here.  For example:
                     ;; (dired-omit-mode 1)
                     ))

This will load `dired-x.el` when Dired is first invoked (for example, when you first type `C-x d`).