about summary refs log tree commit diff
path: root/configs/shared/.emacs.d/wpc
diff options
context:
space:
mode:
authorWilliam Carroll <wpcarro@gmail.com>2020-01-23T13·50+0000
committerWilliam Carroll <wpcarro@gmail.com>2020-01-23T13·50+0000
commit37f8ca04f29ea9bf988b2277c42f3e264d7a89e1 (patch)
treed218c3cfc7618cb94ae4d593cd3db485ff1b6295 /configs/shared/.emacs.d/wpc
parentdf112d34b6880c388a93f37f98b09b5f2b360b1e (diff)
Update dired-mode-map KBDs
- Ensure `"<SPC>"` is available for my "leader" KBDs
- Define `"o"` as `#'dired-find-file-other-window`
Diffstat (limited to 'configs/shared/.emacs.d/wpc')
-rw-r--r--configs/shared/.emacs.d/wpc/packages/wpc-dired.el8
1 files changed, 5 insertions, 3 deletions
diff --git a/configs/shared/.emacs.d/wpc/packages/wpc-dired.el b/configs/shared/.emacs.d/wpc/packages/wpc-dired.el
index 13aed975d2a5..90ac5f4a6953 100644
--- a/configs/shared/.emacs.d/wpc/packages/wpc-dired.el
+++ b/configs/shared/.emacs.d/wpc/packages/wpc-dired.el
@@ -18,9 +18,11 @@
         dired-dwim-target t)
   (general-define-key
    :keymaps 'dired-mode-map
-   :states 'normal
-   "s" nil
-   "q" (lambda () (interactive) (kill-buffer nil))
+   :states '(normal)
+   ;; Overriding some KBDs defined in the evil-collection module.
+   "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
    "f" #'wpc/find-file
    "-" (lambda () (interactive) (find-alternate-file "..")))