From e18870f920162a032a250047780227883aa4380c Mon Sep 17 00:00:00 2001 From: Marc Pohling Date: Tue, 29 May 2018 20:33:03 +0200 Subject: [PATCH] first evil dired keybindings --- config.org | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/config.org b/config.org index 05f4713..d07207d 100644 --- a/config.org +++ b/config.org @@ -379,7 +379,24 @@ :non-normal-prefix "M-SPC" "t" '(counsel-org-tag :which-key "org-tag")) #+END_SRC - + + A map for dired, based on [[https://github.com/emacs-evil/evil-collection/blob/master/evil-collection-dired.el][evil-collection]] +#+BEGIN_SRC emacs-lisp +(general-define-key + :states '(normal visual insert emacs) + :keymaps 'dired-mode-map + "q" '(quit-window :which-key "quit-window") + "j" '(dired-next-line :which-key "next line") + "k" '(dired-previous-line :which-key "previous line") + "D" '(dired-do-delete :which-key "delete") + "C" '(dired-do-copy :which-key "copy") + "t" '(:ignore t :which-key "dir navigation") + "td" '(dired-tree-down :which-key "tree down") + "tu" '(dired-tree-up :which-key "tree up") + "tn" '(dired-next-subdir :which-key "next subdir") + "tp" '(dired-prev-subdir :which-key "previous subdir") +) +#+END_SRC ** List buffers Ibuffer is the improved version of list-buffers. Make ibuffer the default buffer lister. [[http://ergoemacs.org/emacs/emacs_buffer_management.html][Source]]