X-Git-Url: https://git.shemshak.org/~bandali/configs/blobdiff_plain/d7dee82420a04e5c92e5b5ad316e14a49bd4d689..64e7d61578f5aa3b2d0c411e6cd39bc355e2d4e6:/.emacs.d/lisp/bandali-dired.el?ds=sidebyside diff --git a/.emacs.d/lisp/bandali-dired.el b/.emacs.d/lisp/bandali-dired.el index 9ed1030..c7ed77f 100644 --- a/.emacs.d/lisp/bandali-dired.el +++ b/.emacs.d/lisp/bandali-dired.el @@ -1,6 +1,6 @@ ;;; bandali-dired.el --- bandali's dired setup -*- lexical-binding: t; -*- -;; Copyright (C) 2018-2020 Amin Bandali +;; Copyright (C) 2018-2022 Amin Bandali ;; Author: Amin Bandali ;; Keywords: files @@ -25,7 +25,7 @@ ;;; Code: (with-eval-after-load 'dired - (csetq + (setq dired-dwim-target t dired-listing-switches "-alh" dired-recent-directories-file (b/var "dired-recent-directories.el") @@ -77,15 +77,16 @@ (b/dired-start-process "zathura"))) (require 'dired-x) - (csetq dired-guess-shell-alist-user - '(("\\.pdf\\'" "evince" "zathura" "okular") - ("\\.doc\\'" "libreoffice") - ("\\.docx\\'" "libreoffice") - ("\\.ppt\\'" "libreoffice") - ("\\.pptx\\'" "libreoffice") - ("\\.xls\\'" "libreoffice") - ("\\.xlsx\\'" "libreoffice") - ("\\.flac\\'" "mpv")))) + (setq + dired-guess-shell-alist-user + '(("\\.pdf\\'" "evince" "zathura" "okular") + ("\\.doc\\'" "libreoffice") + ("\\.docx\\'" "libreoffice") + ("\\.ppt\\'" "libreoffice") + ("\\.pptx\\'" "libreoffice") + ("\\.xls\\'" "libreoffice") + ("\\.xlsx\\'" "libreoffice") + ("\\.flac\\'" "mpv")))) ;; hooks (add-hook 'dired-mode-hook #'dired-hide-details-mode)