aboutsummaryrefslogtreecommitdiff
path: root/Emacs/.config/emacs
diff options
context:
space:
mode:
authorAryadev Chavali <aryadev@aryadevchavali.com>2024-05-08 01:34:31 +0530
committerAryadev Chavali <aryadev@aryadevchavali.com>2024-05-08 01:34:31 +0530
commitd4f4169b9c6fca694094df1443adb787b9894e4a (patch)
tree742b8101aac44f5d7433954c362e167f66ab8c7c /Emacs/.config/emacs
parentee957bcbf69b769cda201d06944f463daa7978c2 (diff)
downloaddotfiles-d4f4169b9c6fca694094df1443adb787b9894e4a.tar.gz
dotfiles-d4f4169b9c6fca694094df1443adb787b9894e4a.tar.bz2
dotfiles-d4f4169b9c6fca694094df1443adb787b9894e4a.zip
(Emacs/app)~rearranged dired config
Put more stuff in :general and it seems to work?!
Diffstat (limited to 'Emacs/.config/emacs')
-rw-r--r--Emacs/.config/emacs/app.org30
1 files changed, 13 insertions, 17 deletions
diff --git a/Emacs/.config/emacs/app.org b/Emacs/.config/emacs/app.org
index 089a3d4..6357b93 100644
--- a/Emacs/.config/emacs/app.org
+++ b/Emacs/.config/emacs/app.org
@@ -200,9 +200,11 @@ are some corners I'd like to adjust).
:general
(nmmap
:keymaps 'dired-mode-map
- "T" #'dired-create-empty-file
- "H" #'dired-up-directory
- "L" #'dired-find-file)
+ "SPC" nil
+ "SPC ," nil
+ "T" #'dired-create-empty-file
+ "H" #'dired-up-directory
+ "L" #'dired-find-file)
(dir-leader
"f" #'find-dired
"d" #'dired
@@ -211,20 +213,6 @@ are some corners I'd like to adjust).
"p" `(,(proc (interactive)
(dired "~/Text/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
:keymaps 'image-dired-thumbnail-mode-map
"h" #'image-dired-backward-image
@@ -242,6 +230,14 @@ are some corners I'd like to adjust).
"l" #'dired-maybe-insert-subdir
"m" #'dired-mark-files-regexp
"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
** fd-dired
Uses fd for finding file results in a directory: ~find-dired~ ->