summaryrefslogtreecommitdiff
path: root/.config/emacs/modules/bd--files.el
diff options
context:
space:
mode:
authorbd <bdunahu@operationnull.com>2024-11-02 11:12:47 -0400
committerbd <bdunahu@operationnull.com>2024-11-02 11:12:47 -0400
commit0e971a7d8be33c208394d9b195985794284317a7 (patch)
tree7e315b71d0238c694c71f98935be454db697aa44 /.config/emacs/modules/bd--files.el
parent8d9ee9214ef7af86a1ab494c9e2276fe4e2db373 (diff)
read desc: eww visual fill, turn on recentf, custom scratch buffer...
eww visual fill, shackle default use same window, fix broken compilation mode output, turn on recentf, custom scratch buffer creation
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)