~gpanders/dotfiles

ref: c8e63bac959db19c138dcc3198a56514f0b444ff dotfiles/.emacs.d/lisp/init-dired.el -rw-r--r-- 673 bytes
c8e63bacGreg Anders Manage dotfiles directly in home directory 1 year, 6 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
;; Enable dired-x
(autoload 'dired-jump "dired-x"
  "Jump to Dired buffer corresponding to current buffer." t)

(autoload 'dired-jump-other-window "dired-x"
  "Like \\[dired-jump] (dired-jump) but in other window." t)

(define-key global-map "\C-x\C-j" 'dired-jump)
(define-key global-map "\C-x4\C-j" 'dired-jump-other-window)


(add-hook 'dired-load-hook
          (lambda ()
            (load "dired-x")
            (setq dired-omit-files
                  (concat dired-omit-files "\\|^\\..+$"))
            ))

(add-hook 'dired-mode-hook
          (lambda ()
            (dired-omit-mode 1)
            (dired-hide-details-mode 1)
            ))

(provide 'init-dired)