Update dired-mode-map KBDs

- Ensure `"<SPC>"` is available for my "leader" KBDs
- Define `"o"` as `#'dired-find-file-other-window`
This commit is contained in:
William Carroll 2020-01-23 13:50:18 +00:00
parent df112d34b6
commit 37f8ca04f2

View file

@ -18,9 +18,11 @@
dired-dwim-target t) dired-dwim-target t)
(general-define-key (general-define-key
:keymaps 'dired-mode-map :keymaps 'dired-mode-map
:states 'normal :states '(normal)
"s" nil ;; Overriding some KBDs defined in the evil-collection module.
"q" (lambda () (interactive) (kill-buffer nil)) "o" #'dired-find-file-other-window
"<SPC>" nil ;; This unblocks some of my leader-prefixed KBDs.
"s" nil ;; This unblocks my window-splitting KBDs.
"c" #'find-file "c" #'find-file
"f" #'wpc/find-file "f" #'wpc/find-file
"-" (lambda () (interactive) (find-alternate-file ".."))) "-" (lambda () (interactive) (find-alternate-file "..")))