Browse Source

Add dired map

master
10sr 6 years ago
parent
commit
77c5c0af69
Signed by: 10sr GPG Key ID: 7BEC428194130EB2
1 changed files with 5 additions and 2 deletions
  1. +5
    -2
      emacs.el

+ 5
- 2
emacs.el View File

@@ -1251,7 +1251,7 @@ found, otherwise returns nil."
(set-variable 'recentf-show-file-shortcuts-flag nil) (set-variable 'recentf-show-file-shortcuts-flag nil)
(set-variable 'recentf-auto-cleanup 3) (set-variable 'recentf-auto-cleanup 3)


(safe-require-or-eval 'sync-recentf)
;; (safe-require-or-eval 'sync-recentf)


(when (safe-require-or-eval 'recentf) (when (safe-require-or-eval 'recentf)
(add-to-list 'recentf-exclude (add-to-list 'recentf-exclude
@@ -1422,9 +1422,9 @@ ARG is num to show, or defaults to 7."
) )
(setq dired-listing-switches "-lhF") (setq dired-listing-switches "-lhF")


(put 'dired-find-alternate-file 'disabled nil)
;; when using dired-find-alternate-file ;; when using dired-find-alternate-file
;; reuse current dired buffer for the file to open ;; 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 'dired-ls-F-marks-symlinks t)


(set-variable 'ls-lisp-use-insert-directory-program nil) ; always use ls-lisp (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) (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) ;; (define-minor-mode my-dired-glob-filter)




Loading…
Cancel
Save