aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel <[email protected]>2024-03-07 17:15:10 -0500
committerDaniel <[email protected]>2024-03-07 17:15:10 -0500
commitd9083bc8cdb560452d059a126347900f34567051 (patch)
tree31301c309ccf553fa97619827603b28758381c0a
parentfb3e354408380d5ab81ef486b4174daa0d1f561f (diff)
dired customizations
-rw-r--r--bard-emacs-modules/bard-emacs-dired.el10
1 files changed, 10 insertions, 0 deletions
diff --git a/bard-emacs-modules/bard-emacs-dired.el b/bard-emacs-modules/bard-emacs-dired.el
new file mode 100644
index 0000000..1137e27
--- /dev/null
+++ b/bard-emacs-modules/bard-emacs-dired.el
@@ -0,0 +1,10 @@
+(define-key global-map (kbd "C-j") #'dired-jump)
+(with-eval-after-load "org-mode"
+ (define-key org-mode-map (kbd "C-j") nil))
+
+ (setq dired-guess-shell-alist-user ; those are the suggestions for ! and & in Dired
+ '(("\\.\\(png\\|jpe?g\\|tiff\\)" "feh" "xdg-open")
+ ("\\.\\(mp[34]\\|m4a\\|ogg\\|flac\\|webm\\|mkv\\)" "mpv" "xdg-open")
+ (".*" "xdg-open")))
+
+(add-hook 'dired-mode-hook #'dired-hide-details-mode)