From 77c5c0af69c9e816b8a9d4d11836bede2c4a04a8 Mon Sep 17 00:00:00 2001 From: 10sr <8.slashes@gmail.com> Date: Mon, 1 Oct 2018 16:54:18 +0900 Subject: [PATCH] Add dired map --- emacs.el | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/emacs.el b/emacs.el index 0eee342..b8ae69a 100644 --- a/emacs.el +++ b/emacs.el @@ -1251,7 +1251,7 @@ found, otherwise returns nil." (set-variable 'recentf-show-file-shortcuts-flag nil) (set-variable 'recentf-auto-cleanup 3) -(safe-require-or-eval 'sync-recentf) +;; (safe-require-or-eval 'sync-recentf) (when (safe-require-or-eval 'recentf) (add-to-list 'recentf-exclude @@ -1422,9 +1422,9 @@ ARG is num to show, or defaults to 7." ) (setq dired-listing-switches "-lhF") -(put 'dired-find-alternate-file 'disabled nil) ;; when using dired-find-alternate-file ;; reuse current dired buffer for the file to open +;; (put 'dired-find-alternate-file 'disabled nil) (set-variable 'dired-ls-F-marks-symlinks t) (set-variable 'ls-lisp-use-insert-directory-program nil) ; always use ls-lisp @@ -1994,6 +1994,9 @@ use for the buffer. It defaults to \"*recetf-show*\"." ) (define-key ctl-x-map (kbd "C-l") 'my-dired-git-ls-files) +(with-eval-after-load 'dired + (defvar dired-mode-map (make-sparse-keymap)) + (define-key dired-mode-map "f" 'my-dired-git-ls-files)) ;; (define-minor-mode my-dired-glob-filter)