summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjdlugosz963 <jdlugosz963@gmail.com>2022-09-21 23:05:13 +0200
committerjdlugosz963 <jdlugosz963@gmail.com>2022-09-21 23:05:13 +0200
commit7576787242f9a7834c6acd29657150d03f51f0d9 (patch)
tree898d13fcddba2c8587cedb5ab79dc5bff1a5a91a
parent801cd6dfd4fbed882095bec66e5335f3c154606a (diff)
downloaddotfiles-7576787242f9a7834c6acd29657150d03f51f0d9.tar.gz
dotfiles-7576787242f9a7834c6acd29657150d03f51f0d9.zip
Improve dired workflow
-rw-r--r--.config/emacs/init.el4
-rw-r--r--Emacs.org37
2 files changed, 23 insertions, 18 deletions
diff --git a/.config/emacs/init.el b/.config/emacs/init.el
index c33d57c..363c125 100644
--- a/.config/emacs/init.el
+++ b/.config/emacs/init.el
@@ -567,7 +567,9 @@
567 "p" 'dired-ranger-paste 567 "p" 'dired-ranger-paste
568 "X" 'dired-ranger-move 568 "X" 'dired-ranger-move
569 "h" 'dired-up-directory 569 "h" 'dired-up-directory
570 "l" 'dired-single-buffer)) 570 "l" 'dired-single-buffer
571 "q" 'kill-current-buffer)
572 (setq dired-kill-when-opening-new-dired-buffer t))
571 573
572(use-package emms 574(use-package emms
573 :config 575 :config
diff --git a/Emacs.org b/Emacs.org
index 3b24b1b..89fb2e5 100644
--- a/Emacs.org
+++ b/Emacs.org
@@ -886,24 +886,27 @@
886 886
887#+begin_src emacs-lisp 887#+begin_src emacs-lisp
888 888
889 (use-package all-the-icons-dired 889 (use-package all-the-icons-dired
890 :hook (dired-mode . all-the-icons-dired-mode)) 890 :hook (dired-mode . all-the-icons-dired-mode))
891
892 (use-package dired-ranger)
893
894 (use-package dired-single)
895
896 (use-package dired
897 :ensure nil
898 :commands (dired dired-jump)
899 :custom ((dired-listing-switches "-agho --group-directories-first"))
900 :config
901 (evil-collection-define-key 'normal 'dired-mode-map
902 "y" 'dired-ranger-copy
903 "p" 'dired-ranger-paste
904 "X" 'dired-ranger-move
905 "h" 'dired-up-directory
906 "l" 'dired-single-buffer)
907 (setq dired-kill-when-opening-new-dired-buffer t)
908 (evil-define-key 'normal dired-mode-map (kbd "q") 'kill-current-buffer))
891 909
892 (use-package dired-ranger)
893
894 (use-package dired-single)
895
896 (use-package dired
897 :ensure nil
898 :commands (dired dired-jump)
899 :custom ((dired-listing-switches "-agho --group-directories-first"))
900 :config
901 (evil-collection-define-key 'normal 'dired-mode-map
902 "y" 'dired-ranger-copy
903 "p" 'dired-ranger-paste
904 "X" 'dired-ranger-move
905 "h" 'dired-up-directory
906 "l" 'dired-single-buffer))
907 910
908#+end_src 911#+end_src
909 912