summaryrefslogtreecommitdiff
path: root/.config/emacs/modules/bd--files.el
diff options
context:
space:
mode:
Diffstat (limited to '.config/emacs/modules/bd--files.el')
-rw-r--r--.config/emacs/modules/bd--files.el15
1 files changed, 10 insertions, 5 deletions
diff --git a/.config/emacs/modules/bd--files.el b/.config/emacs/modules/bd--files.el
index a39f21c..f050132 100644
--- a/.config/emacs/modules/bd--files.el
+++ b/.config/emacs/modules/bd--files.el
@@ -3,17 +3,22 @@
;;; Code:
-(require 'recentf)
-
+(use-package recentf
+ :init
+ (recentf-mode 1)
+ :custom
+ (recentf-max-saved-items 2000)
+ (recentf-keep '(recentf-keep-default-predicate remote-file-p))
+ (recentf-auto-cleanup 300))
(defun bd/zathura (file)
- "Open FILE with zathura"
+ "Open FILE with zathura."
(start-process "zathura" nil "zathura" (expand-file-name file)))
(defun bd/mpv (file)
- "Open FILE with mpv"
+ "Open FILE with mpv."
(start-process "mpv" nil "mpv" "--force-window=yes" (expand-file-name file)))
(defun bd/nsxiv (file)
- "Open FILE with nsxiv"
+ "Open FILE with nsxiv."
(start-process "nsxiv" nil "nsxiv" (expand-file-name file)))
(defun bd/external-find-file-wrapper (f &rest args)