Commit Diff


commit - 68a1d5ba1004393844931fc1abf9760d305bec83
commit + 5ae0016432981cec4808626cfb86300e9b216bf6
blob - b7c7f0751065c632f62d8193336a09e6e068ec87
blob + ba2e9501bd5f30f68fe4374bd3c327674ebece05
--- init.el
+++ init.el
@@ -446,6 +446,15 @@
              (file ,(expand-file-name "inbox.org" dir))
              "* %?")))))
 
+(customize-set-value
+ 'dired-guess-shell-alist-user
+ (cond
+  ((eq system-type 'gnu/linux)
+   `((,(rx "." (or "png" "jpg" (seq "jp" (? "e") "g"))) "pqiv")
+     (,(rx "." (or "mkv" "mp4" "webm" "ogv" "avi")) "mpv")
+     (,(rx "." (or "flac" "ogg" "mp3" "wav")) "mpv --force-window")))
+  (t nil)))
+
 (diminish 'which-key-mode)
 (diminish 'aggressive-indent-mode)
 (diminish 'editorconfig-mode)