(Emacs/app)~rearranged dired config
Put more stuff in :general and it seems to work?!
This commit is contained in:
@@ -200,6 +200,8 @@ are some corners I'd like to adjust).
|
|||||||
:general
|
:general
|
||||||
(nmmap
|
(nmmap
|
||||||
:keymaps 'dired-mode-map
|
:keymaps 'dired-mode-map
|
||||||
|
"SPC" nil
|
||||||
|
"SPC ," nil
|
||||||
"T" #'dired-create-empty-file
|
"T" #'dired-create-empty-file
|
||||||
"H" #'dired-up-directory
|
"H" #'dired-up-directory
|
||||||
"L" #'dired-find-file)
|
"L" #'dired-find-file)
|
||||||
@@ -211,20 +213,6 @@ are some corners I'd like to adjust).
|
|||||||
"p" `(,(proc (interactive)
|
"p" `(,(proc (interactive)
|
||||||
(dired "~/Text/PDFs/"))
|
(dired "~/Text/PDFs/"))
|
||||||
:which-key "Open PDFs"))
|
:which-key "Open PDFs"))
|
||||||
:config
|
|
||||||
(add-to-list 'dired-guess-shell-alist-user '("\\.pdf\\'" "zathura"))
|
|
||||||
(defun +dired/insert-all-subdirectories ()
|
|
||||||
"Insert all subdirectories currently viewable."
|
|
||||||
(interactive)
|
|
||||||
(dired-mark-directories nil)
|
|
||||||
(dolist #'dired-insert-subdir (dired-get-marked-files))
|
|
||||||
(dired-unmark-all-marks))
|
|
||||||
|
|
||||||
(nmmap
|
|
||||||
:keymaps 'dired-mode-map
|
|
||||||
"SPC" nil
|
|
||||||
"SPC ," nil)
|
|
||||||
|
|
||||||
(nmmap
|
(nmmap
|
||||||
:keymaps 'image-dired-thumbnail-mode-map
|
:keymaps 'image-dired-thumbnail-mode-map
|
||||||
"h" #'image-dired-backward-image
|
"h" #'image-dired-backward-image
|
||||||
@@ -242,6 +230,14 @@ are some corners I'd like to adjust).
|
|||||||
"l" #'dired-maybe-insert-subdir
|
"l" #'dired-maybe-insert-subdir
|
||||||
"m" #'dired-mark-files-regexp
|
"m" #'dired-mark-files-regexp
|
||||||
"u" #'dired-undo))
|
"u" #'dired-undo))
|
||||||
|
:config
|
||||||
|
(add-to-list 'dired-guess-shell-alist-user '("\\.pdf\\'" "zathura"))
|
||||||
|
(defun +dired/insert-all-subdirectories ()
|
||||||
|
"Insert all subdirectories currently viewable."
|
||||||
|
(interactive)
|
||||||
|
(dired-mark-directories nil)
|
||||||
|
(mapc #'dired-insert-subdir (dired-get-marked-files))
|
||||||
|
(dired-unmark-all-marks)))
|
||||||
#+end_src
|
#+end_src
|
||||||
** fd-dired
|
** fd-dired
|
||||||
Uses fd for finding file results in a directory: ~find-dired~ ->
|
Uses fd for finding file results in a directory: ~find-dired~ ->
|
||||||
|
|||||||
Reference in New Issue
Block a user