aboutsummaryrefslogtreecommitdiff
path: root/mf-lisp/mf-dired.el
blob: bef84d6b6fb0463a1b1d0b40dbb817cedd91ca6e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
;;; mf-dired.el --- My dired configuration -*- lexical-binding: t -*-

;;; Commentary:
;; Setup Dired buffers.

;;; Code:
(mf/install dired-filter)
(eval-after-load 'dired
  '(progn
     (message "Loaded dired-mode")
     (setq dired-kill-when-opening-new-dired-buffer t)
     (add-hook 'dired-mode-hook 'dired-hide-details-mode)
     (add-hook 'dired-mode-hook 'dired-filter-mode)
     (define-key dired-mode-map (kbd "q")
                 #'(lambda() (interactive (quit-window t))))))

; keybindings
(mf/leader "d" dired)

(provide 'mf-dired)
;;; mf-dired.el ends here